convert_glucose_to_mM: Convert glucose from mg/dL to mmol/L

View source: R/convert_glucose_to_mM.R

convert_glucose_to_mMR Documentation

Convert glucose from mg/dL to mmol/L

Description

Convert glucose from mg/dL to mmol/L

Usage

convert_glucose_to_mM(glucose, glucose_units)

Arguments

glucose

numeric vector with glucose values

glucose_units

currently only mg/dl

Value

numeric vetor of glucose in mmol/l

Examples

convert_glucose_to_mM(100, "mg/dl")
convert_glucose_to_mM(100, "mg/dL")
convert_glucose_to_mM(100, "mg_dl")
convert_glucose_to_mM(100, "mg") # improper units
convert_glucose_to_mM(100, "mmol/l") 

convert_glucose_to_mgdl(8, "mmol/l") 


JMLuther/tabletools documentation built on July 1, 2024, 2:01 p.m.