if (FALSE) {
# Worldwide data by country
x <- covid19()
# Worldwide data by state
x <- covid19(level = 2)
# Data for specific countries by county/province
x <- covid19(c("Italy", "US"), level = 3)
# Retrieve the data that were available on 15 May, 2020
x <- covid19(vintage = "2020-05-15")
# Download the files in the folder "data"
dir.create("data")
x <- covid19(dir = "data")
# World Bank data
wb <- c("gdp" = "NY.GDP.MKTP.CD", "hosp_beds" = "SH.MED.BEDS.ZS")
x <- covid19(wb = wb)
# Google Mobility Reports
x <- covid19(gmr = TRUE)
# Apple Mobility Reports
x <- covid19(amr = "path/to/file.csv")
}
Run the code above in your browser using DataLab