forecast_dates
from
a local clone of reichlab/covid19-forecast-hub
repo.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
.
load_forecasts_repo( file_path, models = NULL, forecast_dates = NULL, locations = NULL, types = NULL, targets = NULL, hub = c("US", "ECDC"), verbose = TRUE )
file_path | path to the data-processed folder within a local clone of the hub repo |
---|---|
models | Character vector of model abbreviations. Default all models that submitted forecasts meeting the other criteria. |
forecast_dates | 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 |
locations | list of fips. Default to all locations with available forecasts. |
types | Character vector specifying type of forecasts to load: |
targets | character vector of targets to retrieve, for example
|
hub | character vector, where the first element indicates the hub
from which to load forecasts. Possible options are |
verbose | logical to print out diagnostic messages. Default is |
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.