R/get-forecast-type.R
assert_forecast_type.Rd
Assert that forecast type is as expected
assert_forecast_type(data, actual = get_forecast_type(data), desired = NULL)
A forecast object.
The actual forecast type of the data
The desired forecast type of the data
Returns NULL invisibly if the assertion was successful and throws an error otherwise.