as.unit | R Documentation |
This converts strings to unit objects. Only a few strings are recognized, because most oce functions have specialized unit vocabularies and so have little need of this function.
as.unit(u, default = list(unit = expression(), scale = ""))
u |
A character string indicating a unit. Case is ignored, so that e.g.
|
default |
A default to be used for the return value, if |
A list with elements unit
, an expression()
,
and scale
, a string.
Dan Kelley
as.unit("DBAR")
as.unit("IPTS-68")
as.unit("ITS-90")
as.unit("PSS-78")
as.unit("UMOL/KG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.