COVID19Cases_geoRegion | R Documentation |
A dataset containing COVID-19 cases by region (NUTS 3 = cantons) and time periods (days) for Switzerland (Source: Federal Office of Public Health FOPH).
data(COVID19Cases_geoRegion)
A data.frame with multiple columns:
(character) Region for which the data was collected.
(Date) Date of record.
(integer) Number of reported cases on this date.
(integer) Cumulative case numbers.
(logical) Indicates whether the time period covers the last 14 days.
(logical) Indicates whether the time period covers all previous data.
(integer) Offset of the last 7 days.
(integer) Cumulative case numbers of the last 7 days.
(integer) Offset of the last 14 days.
(integer) Cumulative case numbers of the last 14 days.
(integer) Offset of the last 28 days.
(integer) Cumulative case numbers of the last 28 days.
(numeric) Sum of the last 7 days.
(numeric) Sum of the last 14 days.
(numeric) Average of the last 7 days.
(numeric) Average of the last 14 days.
(integer) Difference from the last age group.
(integer) Population of the region.
(numeric) Incidence of the entries.
(numeric) Incidence of cumulative cases.
(numeric) Incidence of the 7-day average.
(numeric) Incidence of the 14-day average.
(numeric) Incidence of cumulative cases in the last 7 days.
(numeric) Incidence of cumulative cases in the last 14 days.
(numeric) Incidence of cumulative cases in the last 28 days.
(numeric) Incidence of the last 7 days.
(numeric) Incidence of the last 14 days.
(numeric) Difference in sums of the last 7 days.
(numeric) Difference in incidence of the last 7 days.
(character) Type of recorded data (e.g., COVID-19 cases).
(character) Variant of the data type.
(character) Version of the data collection.
(character) Unit of date specification (e.g., day).
(integer) Last known count of entries.
(integer) Newly reported entries.
(integer) Difference in last entries.
The data is included as it was published in ??. Note that the reporting date equals the date of SARS-CoV-2 testing.
Federal Office of Public Health FOPH (2023) COVID-19 Dashboard Source Data. https://www.covid19.admin.ch/api/data/documentation (retrieved 2023-06-28)
data(COVID19Cases_geoRegion)
# Get SWISS COVID19 cases at NUTS 3 level
COVID19Cases_geoRegion <-
COVID19Cases_geoRegion[!COVID19Cases_geoRegion$geoRegion %in% c("CH", "CHFL"),]
# Exclude CH = Switzerland total and CHFL = Switzerland and Liechtenstein total
COVID19Cases_geoRegion <-
COVID19Cases_geoRegion[COVID19Cases_geoRegion$datum <= "2020-05-31",]
# Extract first COVID-19 wave
COVID19Cases_geoRegion_balanced <-
is_balanced(
data = COVID19Cases_geoRegion,
col_cases = "entries",
col_date = "datum",
col_region = "geoRegion"
)
# Test whether "COVID19Cases_geoRegion" is balanced panel data
COVID19Cases_geoRegion_balanced$data_balanced
# Balanced? TRUE or FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.