powered by
Units attribute.
units(x)units(x) <- valuehas.units(x)
units(x) <- value
has.units(x)
An object.
A character specifying the units
character
units(x) <- value: Set units attribute.
has.units(): Check for attribute.
has.units()
x <- 1:10 units(x) <- "cm" has.units(x) units(x)
Run the code above in your browser using DataLab