powered by
Converts units (to SI equivalents by default)
convert.units(x, tounit = c("kg", "s", "m", "m3", "J", "W", "A", "V", "C", "N", "Pa", "Hz", "mol"), fromunit = NULL)
numeric vector with values to be converted
numeric
character vector of the new units to be used
character
character vector or factor with the current units
Returns a data.frame
data.frame
Uses the table in en.opasnet.org/w/Unit_conversions for the conversions, which can be edited to contain relevant units.
See also: http://en.opasnet.org/
convert.units(1, tounit = c("pg", "l"), fromunit = "ug /m3")
Run the code above in your browser using DataLab