Description Usage Arguments Details Value See Also Examples
A convenience wrapper around calc_factor_prefix()
.
1 | 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
1 2 3 4 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.