I am working on Hierarchical Time Series forecasts using fpp3 package. Everything was working good, unless I updated some of the packages and now when I am running the forecast(), its giving me an error:
Error in
mutate()
:
i In argument:topdown = (function (object, ...) ...
.
Caused by error inswitch()
:
! EXPR must be a length 1 vector
fit %>% select(topdown) %>% forecast(h = '21 days')
rlang::last_error()
<error/dplyr:::mutate_error>
Error inmutate()
:
i In argument:topdown = (function (object, ...) ...
.
Caused by error inswitch()
:
! EXPR must be a length 1 vector
Backtrace:
- fit %>% select(topdown) %>% forecast(h = "21 days")
- fabletools:::forecast.lst_mdl(...)
- fabletools:::mapply_maybe_parallel(...)
- base::mapply(FUN = .f, ..., MoreArgs = MoreArgs, SIMPLIFY = SIMPLIFY)
- fabletools:::forecast.mdl_ts(...)
- fable:::forecast.ARIMA(...)
Runrlang::last_trace()
to see the full context.
I have also uploaded the last_trace() function for reference.
Need help urgently as I was very close to completing my project and this happened !!
Regards,
Sonaxy