function to calculate the BMI with the standard formulae: \(BMI = weight / (height/100)^2 \)

bmi_calc(height, weight, unit = list(height = "cm", weight = "kg"))

Arguments

height

height

weight

weight

unit

list of weight and heigt with units for the measures

Value

numeric vector of BMI

See also

Other bmi functions: bmi_calc2()

Examples

bmi_calc(176, 72)
#> [1] 23.2438