bmi_cat | R Documentation |
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)
bmi |
A numeric vector with BMI data. |
A vector of class factor
with 6 levels: "Underweight",
"Normal weight", "Overweight", "Obesity class I", "Obesity class II"
and "Obesity class III".
bmi()
mass <- sample(50:100, 20)
height <- rnorm(20, mean = 1.7, sd = 0.2)
bmi <- bmi(mass, height)
bmi_cat(bmi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.