calc_factor_prefix: Get a factor to convert metric prefixes.

Description Usage Arguments Details Value See Also Examples

Description

Get a factor to convert metric prefixes into one another.

Usage

1

Arguments

from

A string containing the prefixed unit A.

to

A string containing the prefixed unit B.

Details

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).

Value

A factor for multiplication with the value.

See Also

Other conversion functions: calc_factor_conc, convert_conc, convert_prefix

Examples

1
2
3
4
calc_factor_prefix(from = "ng", to = "kg")
calc_factor_prefix(from = "dm^3", to = "cm^3")
calc_factor_prefix(from = "fl", to = "pl")
calc_factor_prefix(from = "pmol", to = "nmol")

randomchars42/bioset documentation built on May 7, 2019, 9:43 p.m.