bmi_cat returns the element-wise BMI category as factor with 6 levels:

  • Underweight (18.5 < BMI)

  • Normal weight (18.5 \(\le\) BMI < 25)

  • Overweight (25 \(\le\) BMI < 30)

  • Obesity class I (30 \(\le\) BMI < 35)

  • Obesity class II (35 \(\le\) BMI < 40)

  • Obesity class III (BMI \(\ge\) 40)

bmi_cat(bmi)

Arguments

bmi

A numeric vector with BMI data. BMI unit must be meters per square meter.

Value

A vector of class factor with 6 levels: "Underweight", "Normal weight", "Overweight", "Obesity class I", "Obesity class II" and "Obesity class III".

See also

Examples

mass <- sample(50:100, 20) height <- rnorm(20, mean = 1.7, sd = 0.2) bmi <- bmi(mass, height) bmi_cat(bmi)
#> [1] Underweight Normal weight Normal weight Underweight #> [5] Normal weight Underweight Obesity class II Normal weight #> [9] Normal weight Obesity class I Normal weight Obesity class III #> [13] Overweight Obesity class III Obesity class II Obesity class I #> [17] Overweight Underweight Obesity class I Underweight #> 6 Levels: Underweight Normal weight Overweight ... Obesity class III