DGVMUnit-class: An S4 class holding the unit information.

Description Slots

Description

Each slot holds the same number of elements, which are used to construct a unit string. short and long name, numeric unit prefix (multiplier), exponent (the nominator is positive and the denominator negative) and a reference (if not required it should be NA).

Slots

shortname

hold sthe units short name (e.g. "g", "m", ...)

longname

can hold the long name (e.g. "gram", "meter", ...)

scale

if given with a prefix, e.g. k (kilo) it will become 1000

offset

if a value needs to be added or substracted, e.g. for temperatures degree C -> K

exponent

the exponent of the unit

reference

can hold a name to what the unit relates (if it differes for the same unit, they don't calcel out)


joergsteinkamp/DGVMUnits documentation built on May 25, 2019, 6:24 p.m.