Learn R Programming

covidregionaldata (version 0.9.2)

Switzerland: Switzerland Class for downloading, cleaning and processing notification data

Description

Information for downloading, cleaning and processing COVID-19 region data for Switzerland

Arguments

Liechtenstein

Liechtenstein is not a canton of Switzerland, but is presented in the source data as a peer of Swiss cantons and assigned the two letter code FL. covidregionaldata modifies this and presents the region code for Liechtenstein as FL-FL, consistent with the Swiss ISO 3166-2 codes which are of the form CH-BE, CH-ZH, CH-VD, ...

If you do not wish to work with Liechtenstein data, filter out on this code. Note that this is labelled as a ISO 3166-2 code but Liechtenstein's real ISO 3166-2 codes refer to sub-national regions.

Additional data

In addition to the standard covidregionaldata columns provided, the OpenDataZH source data provides other figures for ICU occupancy, number of patients on ventilators, and the how many individuals are isolated or quarantined. These columns are passed through unchanged. Further detail on them can be found at https://github.com/openZH/covid_19/#swiss-cantons-and-principality-of-liechtenstein-unified-dataset

Super class

covidregionaldata::DataClass -> Switzerland

Public fields

origin

name of origin to fetch data for

supported_levels

A list of supported levels.

supported_region_names

A list of region names in order of level.

supported_region_codes

A list of region codes in order of level.

common_data_urls

List of named links to raw data.

source_data_cols

existing columns within the raw data

source_text

Plain text description of the source of the data

source_url

Website address for explanation/introduction of the data

Methods

Public methods

Method set_region_codes()

Set up a table of region codes for clean data

Usage

Switzerland$set_region_codes()

Method clean_common()

Switzerland specific state level data cleaning

Usage

Switzerland$clean_common()

Method clone()

The objects of this class are cloneable with this method.

Usage

Switzerland$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

Subnational data sources Belgium, Brazil, Canada, Colombia, Covid19DataHub, Cuba, France, Germany, Google, India, Italy, JHU, Lithuania, Mexico, Netherlands, SouthAfrica, UK, USA

Examples

Run this code
# NOT RUN {
region <- Switzerland$new(verbose = TRUE, steps = TRUE, get = TRUE)
region$return()
# }

Run the code above in your browser using DataLab