Learn R Programming

vein (version 1.1.3)

add_lkm: Construction function to add unit km

Description

add_lkm just add unit 'km' to different R objects

Usage

add_lkm(x)

Value

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

Arguments

x

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

See Also

Other Add distance unitts: add_miles()

Examples

Run this code
if (FALSE) {
a <- add_lkm(rnorm(100)*10)
plot(a)
b <- add_lkm(matrix(rnorm(100)*10, ncol = 10))
print(head(b))
}

Run the code above in your browser using DataLab