unitFromString | R Documentation |
This is mainly intended for internal use within the package, e.g. by
read.odf()
, and so the list of string-to-unit mappings is not
documented, since developers can learn it from simple examination
of the code. The focus of unitFromString()
is on strings that are
found in oceanographic files available to the author, not on all
possible units.
unitFromString(unit, scale = NULL)
unit |
a character value indicating the unit. These are matched according to rules developed to work with actual data files, and so the list is not by any means exhaustive. |
scale |
a character value indicating the scale. The default value
of |
A list()
of two items: unit
which is an
expression()
, and scale
, which is a string.
Other functions that interpret variable names and units from headers:
ODFNames2oceNames()
,
cnvName2oceName()
,
oceNames2whpNames()
,
oceUnits2whpUnits()
,
unitFromStringRsk()
,
woceNames2oceNames()
,
woceUnit2oceUnit()
unitFromString("dbar") # dbar (no scale)
unitFromString("deg c") # modern temperature (ITS-90 scale)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.