convert_prefix: Convert between metric prefixes.

Description Usage Arguments Details Value See Also Examples

Description

A convenience wrapper around calc_factor_prefix().

Usage

1
convert_prefix(x, from, to)

Arguments

x

The value to convert.

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

The converted value.

See Also

Other conversion functions: calc_factor_conc, calc_factor_prefix, convert_conc

Examples

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

bioset documentation built on May 2, 2019, 4 p.m.