expandUnits {omnibus} | R Documentation |
Convert unit abbreviations to proper unit names
Description
This function converts abbreviations of length and area units (e.g., "m", "km", and "ha") to their proper names (e.g., "meters", "kilometers", "hectares"). Square areal units are specified using an appended "2", where appropriate (e.g., "m2" means "meters-squared" and will be converted to "meters2").
Usage
expandUnits(x)
Arguments
x |
Character: Abbreviations to convert. Case is ignored.
|
See Also
convertUnits
, conversionFactors
Examples
expandUnits(c('m', 'm2', 'ac', 'nm2'))