View source: R/create_trends.R
create_trends | R Documentation |
Returns the minimal tidy data set for long terms trend data which feeds into the reproducible analytical pipeline of the quarterly Hospital Standardised Mortality Ratios publication.
create_trends(smr01, gro, pop, dep, spec, hospital_lookup)
smr01 |
Input tibble for admissions, see details. |
gro |
Input tibble for deaths, see details. |
pop |
Input tibble for population estimates. |
dep |
Input tibble for deprivation lookup. |
spec |
Input tibble for the specialty groupings lookup. |
hospital_lookup |
Input tibble for the hospital name lookup. |
create_trends
expects a tibble
with data extracted
from SMR01, a tibble
with data extracted from NRS deaths records, a
tibble
with population estimates and a tibble
with a
lookup file for deprivation.
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.