Skip to contents

Calculates Baseline Body Mass Index based on Weight and Height

Usage

bmi(weight, height)

Arguments

weight

weight of subject (kg)

height

height of subject (cm)

Value

the BMI value (kg m^(-2))

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