powered by
Calculate body mass index
get_bmi( wt, wt_unit = c("kg", "lb", "oz", "st"), ht, ht_unit = c("cm", "m", "in", "ft"), target = NULL )get_wt_kg(wt, wt_unit = c("kg", "lb", "oz", "st"))get_ht_m2(ht, ht_unit = c("cm", "m", "in", "ft"))bmi_check(bmi)target_wt( target, ht, ht_unit = c("cm", "m", "in", "ft"), wt_unit = c("kg", "lb", "oz", "st") )
get_wt_kg(wt, wt_unit = c("kg", "lb", "oz", "st"))
get_ht_m2(ht, ht_unit = c("cm", "m", "in", "ft"))
bmi_check(bmi)
target_wt( target, ht, ht_unit = c("cm", "m", "in", "ft"), wt_unit = c("kg", "lb", "oz", "st") )
If target is NULL (default), the function returns the body mass index. If target is provided, the function will use
target
NULL
target and ht to back-calculate a target body mass in the units defined by wt_unit (kg by default).
ht
wt_unit
body mass
character. Units of body mass (or desired units if target is passed. See below.)
height
character. Units of height
an optional target BMI (kg/m^2), for which the corresponding body mass will be returned
internal argument
get_bmi(160, "lb", 180, "cm") get_bmi(ht = 5.90, ht_unit = "ft", target = 24, wt_unit = "st") get_bmi(wt = c(60:79, NA), ht = c(NA, 160:179))
Run the code above in your browser using DataLab