View source: R/convert_cholesterol_to_mM.R
convert_cholesterol_to_mM | R Documentation |
LDL, HDL and Total cholesterol are usually reported in mg/dL units. Because the value is the cholesterol content, all use the same unit conversion.
convert_cholesterol_to_mM(cholesterol, cholesterol_units = "mg/dL")
cholesterol |
numeric vector with cholesterol values |
cholesterol_units |
currently only mg/dl |
numeric vetor of cholesterol in mmol/l
convert_cholesterol_to_mM(200, "mg/dl")
convert_cholesterol_to_mM(100, "mg/dL")
convert_cholesterol_to_mM(100, "mg_dl")
convert_cholesterol_to_mM(100, "mg") # improper units
convert_cholesterol_to_mM(100, "mmol/l")
convert_cholesterol_to_mgdl(5.171968, "mmol/l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.