Add a CRCL column to a NM-style data.frame using Cockcroft-Gault. Column names are configurable.
add_crcl_cg(
df,
age_col = "AGE",
bwt_col = "BWT",
sex_col = "SEX",
crea_col = "CREA",
out_col = "CRCL"
)data.frame with the CRCL column added.
data.frame containing AGE, BWT, SEX, CREA columns.
name of the age column (years). Default "AGE".
name of the body-weight column (kg). Default "BWT".
name of the sex column (0=M, 1=F). Default "SEX".
name of the creatinine column (mg/dL). Default "CREA".
name of the output column. Default "CRCL".