R/load_truth.R
load_from_hub_repo.Rd
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")
)
string specifying target type It should be one or more of
"cum death"
, "inc case"
, "inc death"
, "inc hosp"
.
character vector specifying where the truths will
be loaded from: currently support "JHU"
, "NYTimes"
, "HealthData"
and "ECDC"
.
path to local clone or remote of the corresponding prediction hub repository.
string specifying temporal resolution
to include: one of 'daily'
or 'weekly'
date to include the last available truth point in 'yyyy-mm-dd'
format.
character specifying the location of truth data.
Currently only supports "local_hub_repo"
or "remote_hub_repo"
.
character, which hub to use. Default is "US". Other options are "ECDC" and "FluSight".
a data.frame with columns location
, target_end_date
, target_variable
and value