View source: R/find_hospital_day_function.R
find_hospital_day | R Documentation |
Function to calculate what hospital day event occurred
default method
find_hospital_day(.data, event, patientid, admission_day) ## Default S3 method: find_hospital_day(.data, event, patientid, admission_day)
.data |
Your data |
event |
Date object to be used against admit time |
patientid |
A column denoting a unique patient identifier |
admission_day |
First day that a patient arrived at the hospital |
Returns a dataset with a new column denoting the hospital day for each date given
## Not run: result <- find_hospital_day(blood_abx, Service_Day) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.