Converts some laboratory metric to SI units.

as_si(x, type = c("bilirubin", "creatinine"))

as_metric(x, type = c("bilirubin", "creatinine"))

Arguments

x

numeric, values to convert

type

character, type of laboratory value

Value

numeric

Examples

as_si(4.2, "creatinine")
#> [1] 371.28
as_metric(175, "creatinine")
#> [1] 1.979638