e_calc_bmi_categories: BMI category labels using CDC classification

View source: R/e_health_ALL.R

e_calc_bmi_categoriesR Documentation

BMI category labels using CDC classification

Description

BMI category labels using CDC classification

Usage

e_calc_bmi_categories(
  bmi,
  bmi_breaks = c(-Inf, 18.5, 25, 30, Inf),
  bmi_labels = c("Underweight", "Normal or Healthy Weight", "Overweight", "Obese")
)

Arguments

bmi

BMI value

bmi_breaks

Breaks defining labeled ranges, intervals are closed on the left

bmi_labels

Labels for values between break values including lower bound

Value

bmi_cat, categorical levels of BMI

Examples

e_calc_bmi(60, 150) |> e_calc_bmi_categories()
e_calc_bmi(seq(40, 70, by = 5), 150) |> e_calc_bmi_categories()

erikerhardt/erikmisc documentation built on April 17, 2025, 10:48 a.m.