datos_train <- <tsibble> |>
1 filter_index("start_date" ~ "end_date")- 1
-
Replace
start_dateandend_datewith the desired date range for the training set.You can also use.to indicate the start or end of the series:filter_index(. ~ "end_date")orfilter_index("start_date" ~ .).

