get_jhu_daily: Read in daily case data from JHU COVID-19 daily reports...

Description Usage Arguments Details Value Examples

Description

Read in daily case data from JHU COVID-19 daily reports repository

Usage

1
get_jhu_daily(download_date = NULL, write = FALSE, filepath = NULL)

Arguments

download_date

Default of NULL gives today's date, otherwise specify as "dd-mm-yyyy"

write

If TRUE, writes output as csv to filepath. Defaults to FALSE

filepath

Provide filename and path to write to.

Details

Downloads daily data from JHU Corona virus repo (master branch). Data source: https://github.com/CSSEGISandData/COVID-19. If write = TRUE and fielpath = NULL, a covid19_daily_reports.csv will be written to the current directory.

Value

Long format database of time cases, recoveries, deaths

Examples

1
2
cases <- get_jhu_daily()
cases <- get_jhu_daily(write = TRUE)

agroimpacts/covid19clark documentation built on Nov. 19, 2020, 7:22 p.m.