load truth data from a local clone of forecast hub repo

load_from_hub_repo(
  target_variable,
  truth_source,
  repo_path,
  temporal_resolution,
  truth_end_date,
  data_location,
  hub = c("US", "ECDC", "FluSight")
)

Arguments

target_variable

string specifying target type It should be one or more of "cum death", "inc case", "inc death", "inc hosp".

truth_source

character vector specifying where the truths will be loaded from: currently support "JHU", "NYTimes", "HealthData" and "ECDC".

repo_path

path to local clone or remote of the corresponding prediction hub repository.

temporal_resolution

string specifying temporal resolution to include: one of 'daily' or 'weekly'

truth_end_date

date to include the last available truth point in 'yyyy-mm-dd' format.

data_location

character specifying the location of truth data. Currently only supports "local_hub_repo" or "remote_hub_repo".

hub

character, which hub to use. Default is "US". Other options are "ECDC" and "FluSight".

Value

a data.frame with columns location, target_end_date, target_variable and value