Perform unit and code conversions used by KFRE helpers.
Source:R/conversions.R
perform_conversions.Rd
Perform unit and code conversions used by KFRE helpers.
Usage
perform_conversions(
df,
reverse = FALSE,
convert_all = FALSE,
upcr_col = NULL,
calcium_col = NULL,
phosphate_col = NULL,
albumin_col = NULL
)
Arguments
- df
Data frame with source columns to convert.
- reverse
Logical, reverse the conversion if
TRUE
.- convert_all
Logical, convert all known columns if
TRUE
.- upcr_col
Column name for urine protein creatinine ratio.
- calcium_col
Optional column for serum calcium, mg/dL.
- phosphate_col
Optional column for serum phosphorus, mg/dL.
- albumin_col
Optional column for serum albumin, g/dL.