get_forecast_file_path: Generate paths to forecast files submitted on a range of...

View source: R/load_forecasts_repo.R

get_forecast_file_pathR Documentation

Generate paths to forecast files submitted on a range of forecast dates from selected models

Description

Generate paths to forecast files submitted on a range of forecast dates from selected models

Usage

get_forecast_file_path(
  models,
  file_path,
  forecast_dates,
  latest = FALSE,
  verbose = TRUE
)

Arguments

models

character vector of model abbreviations.

file_path

path to local clone of the reichlab/covid19-forecast-hub/data-processed

forecast_dates

date vector to look for forecast files

latest

boolean to only generate path to the latest forecast file from each model

verbose

whether or not to print out diagnostic messages. Default is TRUE

Value

a list of paths to forecast files submitted on a range of forecast dates from selected models


reichlab/covidHubUtils documentation built on Feb. 6, 2024, 1:42 p.m.