make_ts_splits: Generate a Time Series Train/Test Split Indicies

View source: R/nested-modeltime_data_prep.R

make_ts_splitsR Documentation

Generate a Time Series Train/Test Split Indicies

Description

Makes fast train/test split indicies for time series.

Usage

make_ts_splits(.data, .length_test, .length_train = NULL)

Arguments

.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.

Value

A list containing train_idx and test_idx


modeltime documentation built on Oct. 23, 2024, 1:07 a.m.