Description Usage Arguments Value
View source: R/monthly_beddays_and_admissions.R
Generate counts of beddays per month for an episode with an admission and discharge date Optionally these months can be between two supplied dates
1 2 3 4 5 6 7 8 | monthly_beddays_and_admissions(
data,
admission_var,
discharge_var,
earliest_date = NA,
latest_date = NA,
pivot_longer = TRUE
)
|
data |
a tibble with date variables
|
admission_var, discharge_var |
the
|
earliest_date, latest_date |
the earliest and latest dates (months) to compute new variables for |
pivot_longer |
Should the data be left in wide form or pivoted to long form (default) |
a tibble with new variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.