Uses the udunits2 unit library to format inputted unit into an EML unit form.

return_eml_units(units, quiet = FALSE)

Arguments

units

(character) Unit or vector of units.

quiet

(logical) If TRUE, will quiet console text.

Value

(data.frame) Custom unit data frame (will return a row of NAs if a unit cannot be formatted in an EML form).

Examples

# 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
# }