library(fable)
#> Loading required package: fabletools
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
fc <- as_tsibble(mdeaths) %>%
model(SNAIVE(value)) %>%
forecast()
fc %>%
mutate(.model = "a") %>%
relocate(.mean) %>%
bind_rows(fc)
#> Error: Unsupported index type: character
Created on 2020-08-05 by the reprex package (v0.3.0)
Created on 2020-08-05 by the reprex package (v0.3.0)