Description Usage Arguments Value
View source: R/get_covidhub_predictions.R
Get forecast dates per forecaster given select filtering criteria
1 2 3 4 5 6 7 | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.