powered by
bmi_cat returns the element-wise BMI category as factor with 6 levels:
bmi_cat
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)
A vector of class factor with 6 levels: "Underweight", "Normal weight", "Overweight", "Obesity class I", "Obesity class II" and "Obesity class III".
factor
A numeric vector with BMI data. BMI unit must be meters per square meter.
BMI
bmi()
mass <- sample(50:100, 20) height <- rnorm(20, mean = 1.7, sd = 0.2) bmi <- bmi(mass, height) bmi_cat(bmi)
Run the code above in your browser using DataLab