us_empirical_by_level: Prepare us level empirical data into three levels

View source: R/wrapper_functions.R

us_empirical_by_levelR Documentation

Prepare us level empirical data into three levels

Description

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

Usage

us_empirical_by_level(
  empirical_source = c("csse", "usafacts"),
  csse_repo_path = NULL,
  filterdates = NULL,
  updategit = F,
  supplement_territories = T
)

Arguments

empirical_source

source of empirical data.. must be 'csse','usafacts' (defaults to csse)

csse_repo_path

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

filterdates

defaults to all NULL, otherwise a pair of dates (e.g. c("2020-03-01", "2020-06-01")

updategit

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

Examples

prepare_empirical_data("usafacts", "jhudata/", c("2020-03-01", "2020-06-01"))
prepare_empirical_data("csse")

lmullany/rawcoviddata documentation built on March 21, 2023, 10:04 a.m.