smr_data | R Documentation |
Returns the minimal tidy data set for the HSMR dataset.
smr_data(smr01, index = c("M", "Q", "Y"), hospital_lookup)
smr01 |
Input tibble for admissions, see details. |
index |
A character string specifying whether the data are to be produced monthly, quarterly or annually. Valid options are 'M', 'Q' and 'Y'. |
hospital_lookup |
A lookup tibble containing hospital names and location codes. |
smr_data
expects a tibble
with data extracted
from SMR01 which has already been run through smr_wrangling
,
then smr_pmorbs
and finally smr_model
. The data
must be run through these three functions first as smr_data
is the
final step of a four-step process.
If the class is not initiated correctly, nothing is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.