powered by
Test whether an object is a forecast object.
You can test for a specific forecast_<type> class using the appropriate is_forecast_<type> function.
forecast_<type>
is_forecast_<type>
is_forecast_binary(x)is_forecast_nominal(x)is_forecast_ordinal(x)is_forecast_point(x)is_forecast_quantile(x)is_forecast_sample(x)is_forecast(x)
is_forecast_nominal(x)
is_forecast_ordinal(x)
is_forecast_point(x)
is_forecast_quantile(x)
is_forecast_sample(x)
is_forecast(x)
is_forecast: TRUE if the object is of class forecast, FALSE otherwise.
is_forecast
TRUE
forecast
FALSE
is_forecast_<type>*: TRUE if the object is of class forecast_* in addition to class forecast, FALSE otherwise.
is_forecast_<type>*
forecast_*
An R object.
forecast_binary <- as_forecast_binary(example_binary) is_forecast(forecast_binary)
Run the code above in your browser using DataLab