Package 'covid19swiss'

Title: COVID-19 Cases in Switzerland and Principality of Liechtenstein
Description: Provides a daily summary of the Coronavirus (COVID-19) cases in Switzerland cantons and Principality of Liechtenstein. Data source: Specialist Unit for Open Government Data Canton of Zurich <https://www.zh.ch/de/politik-staat/opendata.html>.
Authors: Rami Krispin [aut, cre]
Maintainer: Rami Krispin <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-11-09 04:38:45 UTC
Source: https://github.com/Covid19R/covid19swiss

Help Index


The 2019 Novel Coronavirus COVID-19 (2019-nCoV) Switzerland Outbreak Dataset

Description

daily summary of the Coronavirus (COVID-19) pandemic cases in Switzerland by Canton

Usage

covid19swiss

Format

A data.frame object

Details

The dataset contains the daily summary of the Coronavirus pandemic cases in Switzerland and Principality of Liechtenstein. The data includes the following fields:

date - the timestamp of the case, a Date object

location - the Cantons of Switzerland and the Principality of Liechtenstein (FL) abbreviation code

location_type - description of the location, either Canton of Switzerland or the Principality of Liechtenstein

location_code - a canton index code for merging geometry data from the rnaturalearth package, available only for Switzerland cantons

location_code_type - the name of code in the rnaturalearth package for Switzerland map

data_type - the type of case

value - the number of cases corresponding to the date and data_type fields

Where the available data_type field includes the following cases:

total_tested - number of tests performed as of the date

total_confirmed - number of positive cases as of the date

new_hosp - new hospitalizations with respect to the previously reported date

current_hosp - number of hospitalized patients as of the current date

current_icu - number of hospitalized patients in ICUs as of the current date

current_vent - number of hospitalized patients requiring ventilation as of the current date

total_recovered - total number of patients recovered as of the current date

total_death - total number of death as of the current date

Source

Specialist Unit for Open Government Data Canton of Zurich website

Examples

data(covid19swiss)

head(covid19swiss)

Get information about the datasets provided by covid19swiss

Description

Returns information about the datasets in this package for covid19R harvesting

Usage

get_info_covid19swiss()

Value

a data.frame of information about the datasets in this package

Examples

get_info_covid19swiss()

Refresh the 2019 Novel Coronavirus COVID-19 (2019-nCoV) Dataset in the Covid19R Project Format

Description

aily summary of the Coronavirus (COVID-19) pandemic cases in Switzerland by Canton

Usage

refresh_covid19swiss()

Value

A data.frame object

Source

Specialist Unit for Open Government Data Canton of Zurich website

Examples

# update the data
covid19_swiss <- refresh_covid19swiss()

Update the Package Datasets

Description

Checks if new data is available on the package dev version (Github). In case new data is available the function will enable the user the update the datasets

Usage

update_swiss_data()

Examples

update_swiss_data()