Description Usage Arguments Details Value Author(s) Examples
View source: R/time_series_data_manipulation_tbls.R
Sometimes it is important to know what the census was on any given day, or what the average length of stay is on any given day, including for those patients that are not yet discharged. This can be easily achieved. This will return one record for every account so the data will still need to be summarised.
For those accounts that are not yet discharged the date column that returns will be set to today (the day the function is run.)
This function can take a little bit of time to run while the join comparison runs.
1 | ts_ip_census_los_daily_tbl(.data, .keep_nulls_only = FALSE)
|
.data |
The data passed from from |
.keep_nulls_only |
A boolean that will keep only those records that have a NULL discharge date, meaning the patient is currently admitted. The default is FALSE which brings back all records. |
Requires the data from the ts_ip_census_los_daily_query()
Takes a single boolean parameter
A tibble object
Steven P. Sanderson II, MPH
1 2 3 4 5 6 7 8 | ## Not run:
ts_ip_census_los_daily_query() %>%
ts_ip_census_los_daily_tbl()
ts_ip_census_los_daily_query() %>%
ts_ip_census_los_daily_tbl(.keep_nulls_only = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.