Learn R Programming

swash (version 1.2.1)

COVID19Cases_geoRegion: Switzerland Daily COVID-19 cases by region

Description

A dataset containing COVID-19 cases by region (NUTS 3 = cantons) and time periods (days) for Switzerland (Source: Federal Office of Public Health FOPH).

Usage

data(COVID19Cases_geoRegion)

Arguments

Format

A data.frame with multiple columns:

geoRegion

(character) Region for which the data was collected.

datum

(Date) Date of record.

entries

(integer) Number of reported cases on this date.

sumTotal

(integer) Cumulative case numbers.

timeframe_14d

(logical) Indicates whether the time period covers the last 14 days.

timeframe_all

(logical) Indicates whether the time period covers all previous data.

offset_last7d

(integer) Offset of the last 7 days.

sumTotal_last7d

(integer) Cumulative case numbers of the last 7 days.

offset_last14d

(integer) Offset of the last 14 days.

sumTotal_last14d

(integer) Cumulative case numbers of the last 14 days.

offset_last28d

(integer) Offset of the last 28 days.

sumTotal_last28d

(integer) Cumulative case numbers of the last 28 days.

sum7d

(numeric) Sum of the last 7 days.

sum14d

(numeric) Sum of the last 14 days.

mean7d

(numeric) Average of the last 7 days.

mean14d

(numeric) Average of the last 14 days.

entries_diff_last_age

(integer) Difference from the last age group.

pop

(integer) Population of the region.

inz_entries

(numeric) Incidence of the entries.

inzsumTotal

(numeric) Incidence of cumulative cases.

inzmean7d

(numeric) Incidence of the 7-day average.

inzmean14d

(numeric) Incidence of the 14-day average.

inzsumTotal_last7d

(numeric) Incidence of cumulative cases in the last 7 days.

inzsumTotal_last14d

(numeric) Incidence of cumulative cases in the last 14 days.

inzsumTotal_last28d

(numeric) Incidence of cumulative cases in the last 28 days.

inzsum7d

(numeric) Incidence of the last 7 days.

inzsum14d

(numeric) Incidence of the last 14 days.

sumdelta7d

(numeric) Difference in sums of the last 7 days.

inzdelta7d

(numeric) Difference in incidence of the last 7 days.

type

(character) Type of recorded data (e.g., COVID-19 cases).

type_variant

(character) Variant of the data type.

version

(character) Version of the data collection.

datum_unit

(character) Unit of date specification (e.g., day).

entries_letzter_stand

(integer) Last known count of entries.

entries_neu_gemeldet

(integer) Newly reported entries.

entries_diff_last

(integer) Difference in last entries.

Details

The data is included as it was published in by the Swiss Federal Office of Public Health (Bundesamt fuer Gesundheit, BAG). Note that the reporting date equals the date of SARS-CoV-2 testing.

Examples

Run this code
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

Run the code above in your browser using DataLab