Learn R Programming

COVID19 (version 0.2.1)

switzerland: Coronavirus COVID-19 data - Switzerland

Description

Tidy format dataset of the 2019 Novel Coronavirus COVID-19 (2019-nCoV) epidemic. Swiss data by country or state (cantons). The data are downloaded in real-time, processed and merged with demographic indicators (CH).

Usage

switzerland(type = "state")

Arguments

type

one of country (data by country) or state (data by canton). Default state, data by canton.

Value

Tidy format tibble (data.frame) grouped by id:

id

id in the form "country|state|city".

date

date.

country

administrative area level 1.

state

administrative area level 2.

city

administrative area level 3.

lat

latitude.

lng

longitude.

deaths

the number of deaths.

confirmed

the number of cases.

tests

the number of tests.

deaths_new

daily increase in the number of deaths.

confirmed_new

daily increase in the number of cases.

tests_new

daily increase in the number of tests.

pop

total population.

pop_14

population ages 0-19 (% of total population).

pop_15_64

population ages 20-64 (% of total population).

pop_65

population ages 65+ (% of total population).

pop_age

median age of population.

pop_density

population density per km2.

pop_death_rate

population mortality rate.

Details

Data pulled from the repository collecting the data published on the cantonal websites.

See Also

world, diamond, italy

Examples

Run this code
# NOT RUN {
# data by country
x <- switzerland("country")

# data by canton
x <- switzerland("state")

# }

Run the code above in your browser using DataLab