R/get_covidhub_predictions.R
get_forecast_dates.RdGet forecast dates per forecaster given select filtering criteria
get_forecast_dates( forecasters, forecast_dates, start_date, end_date, date_filtering_function )
| forecasters | vector of forecaster names |
|---|---|
| forecast_dates | A vector of date objects. If provided, only dates within this set will be returned for each forecaster (subject to all other provided criteria) |
| start_date | The earliest date for which to retrieve predictions |
| end_date | The latest date for which to retrieve predictions |
| date_filtering_function | A function which takes a list, where each element is a vector of dates and returns a list where each element is a subset of those in the original list. Used for custom filtering of dates (e.g. only forecasts from Mondays, where all forecasters made a forecast, etc.) |
A list of the same length as forecasters, where each entry is the
vector at the same index in forecast_dates after being filtered according
to the provided criteria