forecast_dates
from
a local clone of reichlab/covid19-forecast-hub
repo.R/load_forecasts_repo.R
load_forecasts_repo.Rd
This function will throw an error when no forecasts are submitted on
any dates in forecast_dates
for selected models
,
locations
, types
and target
.
path to the data-processed folder within a local clone of the hub repo
Character vector of model abbreviations. Default all models that submitted forecasts meeting the other criteria.
A 2 dimensional list of forecast dates to retrieve forecasts.
This function will return the latest forecasts
for each sub-list of dates.
Default to NULL
which would include all valid forecast dates.
The function will throw an error if all dates in this parameter are invalid forecast dates.
a vector of strings of fips code or CBSA codes or location names,
such as "Hampshire County, MA", "Alabama", "United Kingdom".
A US county location names must include state abbreviation.
Default to NULL
which would include all locations with available forecasts.
Character vector specifying type of forecasts to load: "quantile"
and/or "point"
. Default to all valid forecast types.
character vector of targets to retrieve, for example
c('1 wk ahead cum death', '2 wk ahead cum death')
.
Default to NULL
which stands for all valid targets.
character vector indicating the hub from which to load forecasts.
Possible options are "US"
, "ECDC"
and "FluSight"
.
logical to print out diagnostic messages. Default is TRUE
data.frame with columns model
, forecast_date
, location
, horizon
,
temporal_resolution
, target_variable
, target_end_date
, type
, quantile
, value
,
location_name
, population
, geo_type
, geo_value
, abbreviation
This function will drop rows with NULL
in value
column.