prepare_empirical_data: Prepare the Empirical Data

Description Usage Arguments Examples

View source: R/plotting_functions.R

Description

This function prepares the empirical data. Depending on source it will call functions to prepare the csse or usafacts data

Usage

1
2
3
4
5
6
prepare_empirical_data(
  empirical_source,
  csse_repo_path = NULL,
  filterdates = c("2020-03-01", "2030-03-01"),
  updategit = F
)

Arguments

empirical_source

source of empirical data.. must be 'csse','usafacts' or a custom file path

csse_repo_path

defaults to NULL, otherwise a path to local clone of JHU CSSE repo

filterdates

defaults to all dates forward from March 1st, 2020, but can be specifed with a vector of dates

updategit

defaults to FALSE; should the local csse git repo be queried for possible update?

Examples

1
2
prepare_empirical_data("usafacts", "jhudata/", c("2020-03-01", "2020-06-01"))
prepare_empirical_data("my_empirical_data.csv", filterdates = c("2020-03-01", "2020-06-01"))

lmullany/iddplotting documentation built on July 26, 2020, 8:05 p.m.