add_bmi.Rd
Calculates a BMI from height and weight and binds an additional column to the supplied data frame.
height
weight
add_bmi(df)
a data frame containing a height and weight column.
a data frame
df <- data.frame(height = c(70, 72, 64), weight = c(150, 160, 170)) df <- df %>% add_bmi()