as.unit {oce} | R Documentation |
Convert a String to a Unit
Description
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.
Usage
as.unit(u, default = list(unit = expression(), scale = ""))
Arguments
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 |
Value
A list with elements unit
, an expression()
,
and scale
, a string.
Author(s)
Dan Kelley
Examples
as.unit("DBAR")
as.unit("IPTS-68")
as.unit("ITS-90")
as.unit("PSS-78")
as.unit("UMOL/KG")
[Package oce version 1.8-2 Index]