Here is my code:
library(fpp3)
val <- seq(1,100,1)
time <- seq.Date(as.Date("2010-01-01"), by = "day", length.out = 100 )
df <- data.frame(val = val, time = time)
fit <- df %>% as_tsibble(., index = time) %>%
model(arima = ARIMA(val))
fc<- fit %>% forecast(h=7)
It generates:
Error: Problem with `mutate()` input `arima`.
x Input must be a vector, not a `fcdist` object.
i Input `arima` is `(function (object, ...) ...`.
This is essentially the same as in this example. What am I missing? I already double checked for fat fingers error.
It is working fine with
fableTools
‘0.2.1’
andfpp3
0.3