nhs_performs | R Documentation |
nhs_performs
reformats the output from smr_data
and trend_data
in order to fit the template agreed with the team in
charge of NHS Performs. It adds variables topic
and indicator
and reformats period
, dropping all other variables except
location_name
and smr
/crd_rat
.
nhs_performs(input_data, end_date, indicator = c("hsmr", "crude"))
indicator |
controls whether the function reformats data for the trends information tab or the smr information tab. Valid options are 'hsmr' and 'crude'. |
data |
The input |
NHS Performs is a companion website to the ISD website. It contains a collection of indicators which provide information on how a selection of hospitals and NHS boards are performing. HSMR and crude mortality are two indicators featured on the website.
nhs_performs(data = smr_data, end_date = lubridate::dmy(31032019),
indicator = "hsmr")
nhs_performs(data = trend_data, end_date = lubridate::dmy(31032019),
indicator = "crude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.