Common functionality for as_forecast_<type>
functions
Source: R/class-forecast.R
as_forecast_generic.Rd
Common functionality for as_forecast_<type>
functions
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
data
(after any renaming of columns) that denote the unit of a single forecast. Seeget_forecast_unit()
for details. IfNULL
(the default), all columns that are not required columns are assumed to form the unit of a single forecast. If specified, all columns that are not part of the forecast unit (or required columns) will be removed.- ...
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.