downloadCovid19 {covid19br}R Documentation

Function to download COVID-19 data from web repositories

Description

This function downloads the pandemic COVID-19 data at Brazil and World levels. Brazilan data is available at national, region, state, and city levels, whereas the world data are available at the country level.

Usage

downloadCovid19(level = c("brazil", "regions", "states", "cities", "world"))

Arguments

level

the desired level of data aggregation: "brazil" (default), "regions", "states", "cities", and "world".

Details

Data dictionary (variables commum to brazilian and world data):

Data dictionary (variables in the brazilian data):

Data dictionary (variables in the world data):

Value

a tibble containing the downloaded data at the specified level.

Examples


library(covid19br)

# Downloading Brazilian COVID-19 data:
brazil <- downloadCovid19(level = "brazil")
regions <- downloadCovid19(level = "regions")
states <- downloadCovid19(level = "states")
cities <- downloadCovid19(level = "cities")

# Downloading world COVID-19 data:
world <- downloadCovid19(level = "world")



[Package covid19br version 0.1.8 Index]