Description Usage Arguments Value Warning See Also
View source: R/healthcare_system.R
calc_traced_cases()
is used to create a time series for the pandemic
which shows the total and relative amount of cases traced by the German healthcare system.
Traced cases here means that the infection date of an infection is known,
as opposed to cases which had a positive test, but could not be traced back to the infection.
The parameters work exactly like the ones in get_sti_series_for
1 2 3 4 5 6 | calc_traced_cases(
ages = "all",
regions = "Germany",
from = "2020-01-01",
to = Sys.Date()
)
|
ages |
A vector of numbers specifying the desired age groups. The available age groups are "A00-A04","A05-A14","A15-A34","A35-A59","A60-A79" and "A80+".
The numbers in |
regions |
A vector that either consists of strings (either the names of German districts or the names of German states) or district ID's. If this vector has more than one entry, the tibble contains the data of these regions together. |
from |
A date that specifies the beginning of the time series |
to |
A date that specifies the end of the time series |
A tibble that contains total and relative amount of traced cases for each day since 2020
When specifying region and agegroup, the data will not be accurate because there is no population data for the age groups in each district and it will be estimated by the age distribution of Germany. Therefore, it is recommended to specify only one or the other
Other traced cases:
plot_traced_cases_percentage()
,
plot_traced_cases_total()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.