get_JHUCSSE_data: Pull JHU CSSE GitHub data

Description Usage Arguments Value

View source: R/DataUtils.R

Description

Pulls the JHUCSSE total case count data up to current date from GitHub. This version checks what is already saved, and downloads those that are not.

Usage

1
2
3
4
5
6
7
get_JHUCSSE_data(
  case_data_dir = "data/case_data",
  last_date = Sys.time(),
  save_data = FALSE,
  us_data_only = TRUE,
  append_wiki = TRUE
)

Arguments

case_data_dir

directory where daily reported case data files are stored by the function.

last_date

last date for which to include case data

save_data

whether to save raw data locally

us_data_only

whether to only pull US data

append_wiki

TRUE/FALSE whether to append the data from wikipedia for early china

Value

NA (saves a CSV of the current data to the data directory)


HopkinsIDD/covidImportation documentation built on Sept. 14, 2020, 2:43 p.m.