class_ckd_stages: Label CKD stages or ESRD outcomes.

View source: R/labels.R View source: R/perform_eval.R

class_ckd_stagesR Documentation

Label CKD stages or ESRD outcomes.

Description

Label CKD stages or ESRD outcomes.

Usage

class_ckd_stages(
  df,
  egfr_col = "eGFR",
  stage_col = NULL,
  combined_stage_col = NULL
)

Arguments

df

Data frame input.

egfr_col

Column name for eGFR, mL/min/1.73 m^2.

stage_col

Output column name for detailed CKD stages.

combined_stage_col

Output column for combined stages 3 to 5.

Value

The modified data frame with added label columns.

Examples

df <- data.frame(eGFR = c(92, 58, 42, 28, 12))
class_ckd_stages(df, egfr_col = "eGFR")

kfre documentation built on Aug. 28, 2025, 9:09 a.m.