validate_forecast | R Documentation |
The function re-validates an existing forecast object. It is similar to
assert_forecast()
, but returns the input data instead of an invisible
NULL
. See as_forecast()
for details on the expected input formats.
validate_forecast(forecast, forecast_type = NULL, verbose = TRUE)
forecast |
A forecast object (a validated data.table with predicted and
observed values, see |
forecast_type |
(optional) The forecast type you expect the forecasts
to have. If the forecast type as determined by |
verbose |
Logical. If |
Returns NULL
invisibly.
forecast <- as_forecast_binary(example_binary)
assert_forecast(forecast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.