bmi3: Convert Continuous BMI Values into 3-Level Factor

Description Usage Arguments Value

View source: R/bmi3.R

Description

Converts a continuous BMI variable into a 3-level factor variable: Normal weight if [-Inf, 25), Overweight if [25, 30), and Obese if [30, Inf).

Usage

1

Arguments

x

Numeric vector of BMI values.

labels

If TRUE, factor levels are labeled "Normal weight", "Overweight", and "Obese"; if FALSE, factor levels are [-Inf, 25), [25, 30), and [30, Inf).

Value

Factor variable with 3 levels.


dvmisc documentation built on May 2, 2019, 5:51 p.m.