View source: R/get_baseline_function.R
get_baseline | R Documentation |
Function to get the baseline lab value
baseline function for bilirubin and creatinine
baseline function for GFR and Platelets
get_baseline(.data, labvalue, patientid, result_day, onset_type, blood) ## S3 method for class 'bili' get_baseline(.data, labvalue, patientid, result_day, onset_type, blood) ## S3 method for class 'plate' get_baseline(.data, labvalue, patientid, result_day, onset_type, blood)
.data |
Your dataset |
labvalue |
Your lab value, can be bilirubin, creatinine, GFR, or platelets |
patientid |
A column denoting a unique patient identifier |
result_day |
A Date column denoting when a lab resulted |
onset_type |
A character value denoting if an encounter is community or hospital onset |
blood |
A POSIXct indicating the blood culture time |
Returns a dataset with a new column for the baseline of the specified lab value
## Not run: data <- get_baseline(creat, result_day = lab_results, .blood = blood_data) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.