get_jhu_ts: Read in cases data from JHU COVID-19 case respository

Description Usage Arguments Details Value Examples

View source: R/get_jhu_ts.R

Description

Read in cases data from JHU COVID-19 case respository

Usage

1
get_jhu_ts(write = FALSE, filepath = NULL)

Arguments

write

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

filepath

Provide filename and path to write to.

Details

Downloads time series of JHU Corona virus data. Data source: https://github.com/CSSEGISandData/COVID-19. Code adapted from: https://github.com/RamiKrispin/coronavirus. If write = TRUE and fielpath = NULL, a covid19.csv will be written to the current directory

Value

Long format database of time cases, recoveries, deaths

Examples

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

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