GetFromECDC: Get Covid-19 Data From ECDC

Description Usage Arguments Value

View source: R/requests.R

Description

Get Covid-19 situation report from the European Centre for Disease Prevention and Control. This situation report includes new cases and deaths in all countries in the world.

Usage

1
2
3
  GetFromECDC(prefixURL = "https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide-",
  date = "today", fileExt = ".xlsx", auth = authenticate(user = ":",
  password = ":", type = "ntlm"), neat = TRUE)

Arguments

prefixURL

URL prefix for the HTTP request. character vector of length 1.

date

Date (version) of the report. character vector of length 1 or Date object. If character, date must be in day/month/year format.

fileExt

Target file extension in ECDC server character vector of length 1.

auth

Authentication information generated by authenticate. request object.

neat

Should data be cleaned (dates, state name, column names)? logical vector of length 1.

Value

A 'tibble' with 9 columns: Date, Day, Month, Year, New Cases, New Deaths, Country or Territory, Country ID, Country Population (World Bank 2018 Estimates).


pablorm296/covidMex documentation built on May 2, 2020, 4:56 p.m.