
Calculates Baseline Body Mass Index based on Weight and Height
bmi.Rd
Calculates Baseline Body Mass Index based on Weight and Height
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