View source: R/qec_age_table.R
qec_age_table | R Documentation |
Produces rates (per 100,000) by age group for the QEC. It's **really** important that the value for the denominator is the same across all records for the same age group
qec_age_table(df, age_var, denom)
df |
A data frame |
age_var |
A variable giving the age group for the record |
denom |
A variable giving the denominator for the age **group** |
a tibble containing the aggregated data
dat <- data.frame(age_group = c(1, 1, 1, 2, 2, 2, 2),
denominator = c(500000,500000,500000, 600000, 600000, 600000, 600000))
qec_age_table(df = dat, age_var = age_group, denom = denominator)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.