| convert_prefix {bioset} | R Documentation |
A convenience wrapper around calc_factor_prefix().
convert_prefix(x, from, to)
x |
The value to convert. |
from |
A string containing the prefixed unit A. |
to |
A string containing the prefixed unit B. |
Convert, e.g. "kg" to "µg". You can convert ".g", ".l", ".mol", ".m^3" (cubic metres), where "." symbolizes a metric prefix:
For g, l and mol: d (deci), c (centi), m (milli), µ (micro), n (nano), p (pico) and f (femto).
For g you might use k (kilo) as well.
For m^3 (cubic metres) you may only use: d (deci), c (centi) and m (milli).
The converted value.
Other conversion functions: calc_factor_conc,
calc_factor_prefix,
convert_conc
convert_prefix(x = 2, from = "ng", to = "kg") convert_prefix(x = 2, from = "dm^3", to = "cm^3") convert_prefix(x = 2, from = "fl", to = "pl") convert_prefix(x = 2, from = "pmol", to = "nmol")