我正在研究书中的第5.2章示例:https://otexts.com/fpp3/simple-methods.html,在测试讲师正在使用的代码时遇到错误:
filter(!is.na(Bricks)) %>%
model(
Seasonal_naive = SNAIVE(Bricks),
Naive = NAIVE(Bricks),
Drift = RW(Bricks - drift()),
Mean = MEAN(Bricks)
) ```
Here below is an extract of the error message from RStudio whenever I run the code:
> Error in x[[1]] : subscript out of bounds