powered by
Calculate body mass index using weight in kg / (height in meters ^ 2)
bmi_adult(height_m, weight_kg, ...)bmi_adult_ins_lbs(heightin, weightlb, ...)
bmi_adult_ins_lbs(heightin, weightlb, ...)
single numeric, height in meters
numeric vector of weight(s) in kg
passed to validation
height in inches
weight in pounds
# NOT RUN { bmi_adult(1.6, 120) bmi_adult(2, 75) bmi_adult_ins_lbs(72, 200) # }
Run the code above in your browser using DataLab