GetFromJHU: Get Covid-19 Data From JHU CSSE

Description Usage Arguments Value

View source: R/requests.R

Description

Get Covid-19 situation report from the Johns Hopkins University Center for Systems Science and Engineering. This situation report includes all countries in the world.

Usage

1
2
  GetFromJHU(targetURL = "https://github.com/CSSEGISandData/COVID-19/raw/master/csse_covid_19_data/csse_covid_19_daily_reports/",
  fileExt = ".csv", date = "today", neat = TRUE)

Arguments

targetURL

Target URL of the HTTP request. character vector of length 1.

fileExt

Target file extension in GitHub repo. 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.

neat

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

filePrefix

Target file prefix in GitHub repo. character vector of length 1.

Value

A 'tibble' with 12 columns: FIPS code, City/County, State/Province, COuntry/Region, Date of Report, Lat, Long, Confirmed cases, Deaths, Healed Cases, Active Cases, Full Geo Key.


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