Skip to contents

Calculate Body Mass Index

Usage

bmi(weight, height)

Arguments

weight

weight of subject (kg)

height

height of subject (cm)

Value

the BMI value (kg/m^2)

Details

BMI is calculated using the formula: $$BMI = \frac{W}{(H/100)^2}$$

where:

  • \(W\) = weight (kg)

  • \(H\) = height (cm)

See also

Other body_composition: aibw(), bmic(), bsa(), dubois_bsa(), ibw(), mosteller_bsa()

Examples

b <- bmi(80.56, 167)

df <- data.frame(
  "WT" = c(80.56, 71.53, 81.04, 70.17),
  "HT" = c(167, 161, 163, 164)
)
df <- dplyr::mutate(df, bmi = bmi(WT, HT))
df
#>      WT  HT      bmi
#> 1 80.56 167 28.88594
#> 2 71.53 161 27.59539
#> 3 81.04 163 30.50171
#> 4 70.17 164 26.08938