add_lkm {vein}R Documentation

Construction function to add unit km

Description

add_lkm just add unit 'km' to different R objects

Usage

add_lkm(x)

Arguments

x

Object with class "data.frame", "matrix", "numeric" or "integer"

Value

Objects of class "data.frame" or "units"

See Also

Other Add distance unitts: add_miles()

Examples

## Not run: 
a <- add_lkm(rnorm(100)*10)
plot(a)
b <- add_lkm(matrix(rnorm(100)*10, ncol = 10))
print(head(b))

## End(Not run)

[Package vein version 1.1.3 Index]