powered by
Label CKD stages or ESRD outcomes.
class_ckd_stages( df, egfr_col = "eGFR", stage_col = NULL, combined_stage_col = NULL )
The modified data frame with added label columns.
Data frame input.
Column name for eGFR, mL/min/1.73 m^2.
Output column name for detailed CKD stages.
Output column for combined stages 3 to 5.
df <- data.frame(eGFR = c(92, 58, 42, 28, 12)) class_ckd_stages(df, egfr_col = "eGFR")
Run the code above in your browser using DataLab