as_forecast_generic {scoringutils} | R Documentation |
Common functionality for as_forecast_<type>
functions
Description
Common functionality for as_forecast_<type>
functions
Usage
as_forecast_generic(data, forecast_unit = NULL, ...)
Arguments
data |
A data.frame (or similar) with predicted and observed values. See the details section of for additional information on the required input format. |
forecast_unit |
(optional) Name of the columns in |
... |
Named arguments that are used to rename columns. The names of the arguments are the names of the columns that should be renamed. The values are the new names. |
Details
This function splits out part of the functionality of
as_forecast_<type>
that is the same for all as_forecast_<type>
functions.
It renames the required columns, where appropriate, and sets the forecast
unit.