Learn R Programming

NonCompart (version 0.7.0)

UnitUrine: Retuns a conversion factor for the amount calculation from urine concentration and volume

Description

You can get a conversion factor for the multiplication: conc * vol * factor = amount in the given unit.

Usage

UnitUrine(conU = "ng/mL", volU = "mL", amtU = "mg", MW = 0)

Value

Factor

conversion factor for multiplication with the unit in name

Arguments

conU

concentration unit

volU

volume unit

amtU

amount unit

MW

molecular weight

Author

Kyun-Seop Bae <k@acr.kr>

Examples

Run this code
UnitUrine()
UnitUrine("ng/mL", "mL", "mg")
UnitUrine("ug/L", "mL", "mg")
UnitUrine("ug/L", "L", "mg")

UnitUrine("ng/mL", "mL", "g")

UnitUrine("ng/mL", "mL", "mol", MW=500)
UnitUrine("ng/mL", "mL", "mmol", MW=500)
UnitUrine("ng/mL", "mL", "umol", MW=500)

Run the code above in your browser using DataLab