View source: R/class-forecast.R
as_forecast_generic | R Documentation |
as_forecast_<type>
functionsCommon functionality for as_forecast_<type>
functions
as_forecast_generic(
data,
forecast_unit = NULL,
observed = NULL,
predicted = NULL
)
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 |
observed |
(optional) Name of the column in |
predicted |
(optional) Name of the column in |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.