unit_conversion: Unit conversion

View source: R/unit_conversion.R

unit_conversionR Documentation

Unit conversion

Description

Converts units for compatibility with package functions.

Usage

unit_conversion(x, mvunits, to_gL = TRUE)

Arguments

x

The value of the number to be converted, or to convert to (depending on 'to_gL' argument)

mvunits

Units of the mass and volume of the data. Must be entered as "mass/volume"

to_gL

Boolean. Tells whether or not the conversion is into g/L or from g/L to original

Value

Value equivalent to input with the appropriate units.

Examples

unit_conversion(64, "mcg/mL")

hlweeks/pkpredict documentation built on Oct. 29, 2023, 6:08 a.m.