R/utlede_variabler.R
utlede_bmi.Rd
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)
Returns df
with 1 new column: bmi_manual
df <- data.frame(hoyde = c(150, 160, 170), vekt = c(95, 85, 65))