R/si.R
si.Rd
Converts some laboratory metric to SI units.
as_si(x, type = c("bilirubin", "creatinine")) as_metric(x, type = c("bilirubin", "creatinine"))
numeric, values to convert
numeric
character, type of laboratory value
character
as_si(4.2, "creatinine") #> [1] 371.28 as_metric(175, "creatinine") #> [1] 1.979638