etl_extract.etl_covid: Scrape COVID-19 Daily Reports from Github

Description Usage Arguments Examples

View source: R/etl_extract.R

Description

etl_extract obtains COVID-19 daily reports uploaded by CSSEGISandData on Github. Arguments, such as month, day, and year let users obtain data for a specified time period. When no arguments are specified then all available data is scraped from github. The downloaded datsets are then saved as csvs in the raw folder within the directory that the user specified. If no directory was specified then the files are saved in the raw folder within the temp directory that was created.

Usage

1
2
## S3 method for class 'etl_covid'
etl_extract(obj, month, day, year, ...)

Arguments

obj

an etl object

month

numeric vector specifying month(s)

day

numeric vector specifying day(s)

year

numeric vector specifying year(s)

...

arguments passed to methods

Examples

1
2
3
4
5
6
covid_dat <- etl::etl("covid")
## Not run: 
covid_dat %>%
etl_extract(month = 4, day = 1:2, year = 2020)

## End(Not run)

madisonvolpe/covid documentation built on May 15, 2020, 5:43 a.m.