Description Usage Arguments Details Value
tidy_locations
tidy hospital location data
1 | tidy_locations(raw.data)
|
raw.data |
A data frame with location data |
This function takes a data frame with hospital location history and produces
a tidy version with unit arrival and departure data. It accounts for
incorrect departure time from raw EDW data by calculating the departure time
using the arrival time of the next unit (unless it was the patient's last
unit during the hospitalization). It also combines multiple rows of data when
the patient did not actually leave that unit. The data should be read in by
read_edw_data
.
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.