View source: R/labels.R View source: R/perform_eval.R
class_ckd_stages | R Documentation |
Label CKD stages or ESRD outcomes.
class_ckd_stages(
df,
egfr_col = "eGFR",
stage_col = NULL,
combined_stage_col = NULL
)
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. |
The modified data frame with added label columns.
df <- data.frame(eGFR = c(92, 58, 42, 28, 12))
class_ckd_stages(df, egfr_col = "eGFR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.