R: Get a factor to convert metric prefixes.

calc_factor_prefix {bioset} | R Documentation

## Get a factor to convert metric prefixes.

### Description

Get a factor to convert metric prefixes into one another.

### Usage

    calc_factor_prefix(from, to)

### 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

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

[Package bioset version 0.2.2 Index]