return_eml_units.Rd
Uses the udunits2 unit library to format inputted unit into an EML unit form.
return_eml_units(units, quiet = FALSE)
units | (character) Unit or vector of units. |
---|---|
quiet | (logical) If |
(data.frame) Custom unit data frame (will return a row of NAs
if a unit cannot be formatted in an EML form).
# NOT RUN { # The following all return the same data frame return_eml_units("kilometersPerSquareSecond") return_eml_units("Kilometers per seconds squared") return_eml_units("km/s^2") return_eml_units("km s-2") return_eml_units("s-2 / kilometers-1") # this works but is not advised # }