as.unit {oce} | R Documentation |
Convert a String to a Unit
as.unit(u, default = list(unit = expression(), scale = ""))
u |
A character string. |
default |
A default, if the string is not recognized. |
String matching is used to try to guess a unit from a character string.
A list with elements unit
, an expression
, and scale
, a string.
as.unit("IPTS-69")