Add variable bmi_manual Add manually calculatet value of Body Mass Index (BMI = weight in kilograms divided by the square of height in meters).

utlede_bmi(df)

Arguments

df

data.frame with ablanor-data. Must contain variables hoyde and vekt.

Value

Returns df with 1 new column: bmi_manual

Examples

df <- data.frame(hoyde = c(150, 160, 170), vekt = c(95, 85, 65))