as_forecast_point | R Documentation |
forecast
object for point forecastsCreate a forecast
object for point forecasts. See more information on
forecast types and expected input formats by calling ?
as_forecast()
.
When converting a forecast_quantile
object into a forecast_point
object,
the 0.5 quantile is extracted and returned as the point forecast.
as_forecast_point(data, ...)
## Default S3 method:
as_forecast_point(
data,
forecast_unit = NULL,
observed = NULL,
predicted = NULL,
...
)
## S3 method for class 'forecast_quantile'
as_forecast_point(data, ...)
data |
A data.frame (or similar) with predicted and observed values.
See the details section of |
... |
Unused |
forecast_unit |
(optional) Name of the columns in |
observed |
(optional) Name of the column in |
predicted |
(optional) Name of the column in |
Other functions to create forecast objects:
as_forecast
,
as_forecast_binary()
,
as_forecast_nominal()
,
as_forecast_quantile()
,
as_forecast_sample()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.