utlede_bmi: Add variable bmi_manual Add manually calculatet value of Body...

View source: R/utlede_variabler.R

utlede_bmiR Documentation

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

Description

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

Usage

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))

Rapporteket/ablanor documentation built on Feb. 27, 2025, 8:26 p.m.