Title: | Download Timeseries from SurvStat (Robert Koch Institute) |
---|---|
Description: | What the package does (one paragraph). |
Authors: | Robert Challen [aut, cre] |
Maintainer: | Robert Challen <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.4 |
Built: | 2024-11-21 05:36:12 UTC |
Source: | https://github.com/bristol-vaccine-centre/rsurvstat |
single_year
children_coarse: from 0, 15, 20, 25, 30, 40, 50, 60, 70, 80 years
children_medium: from 0, 5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80 years
children_fine: from 0, 1, 2, 3, 4, 5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80 years
five_year: from 0, 1, 5, 10, 15, 20, … , 75, 80 years
zero_fifteen: from 0, 15+
zero_fifteen_sixty: from 0, 15, 60+
zero_one_4_20_40_60_80: from 0, 15, 60+
age_groups
age_groups
An object of class list
of length 8.
https://survstat.rki.de/Content/Query/Create.aspx
SurvStat disease list
diseases
diseases
An object of class list
of length 108.
https://survstat.rki.de/Content/Query/Create.aspx
N.b. its not possible to differentiate between missing data and zero counts in the source dataset.
get_timeseries( disease = diseases$`COVID-19`, measure = c("Count", "Incidence"), age_group = age_groups$single_year, quiet = FALSE, trim_zeros = c("leading", "both", "none") )
get_timeseries( disease = diseases$`COVID-19`, measure = c("Count", "Incidence"), age_group = age_groups$single_year, quiet = FALSE, trim_zeros = c("leading", "both", "none") )
disease |
the disease of interest, see |
measure |
one of "Count" or "Incidence" |
age_group |
the age_group of interest, see |
quiet |
suppress loading messages |
trim_zeros |
get rid of zero counts. Either "both" (from start and end), "leading" (from start only - the default) or "none". |
a data frame with age_cat (ordered factor), age_start, age_end, elapsed_week (weeks since 2020-12-31), date (start of week date approximate) and one of count, incidence or population columns
get_timeseries(diseases$`COVID-19`, measure = "Count", age_group = age_groups$zero_fifteen_sixty)
get_timeseries(diseases$`COVID-19`, measure = "Count", age_group = age_groups$zero_fifteen_sixty)