View source: R/nested-modeltime_data_prep.R
make_ts_splits | R Documentation |
Makes fast train/test split indicies for time series.
make_ts_splits(.data, .length_test, .length_train = NULL)
.data |
A data frame containing ordered time seried data (ascending) |
.length_test |
The number of rows to include in the test set |
.length_train |
Optional. The number of rows to include in the training set. If NULL, returns all remaining row indicies. |
A list containing train_idx and test_idx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.