split_ts {caretForecast} | R Documentation |
Split a time series into training and testing sets
split_ts(y, test_size = 10)
y |
A univariate time series |
test_size |
The number of observations to keep in the test set |
A list with train and test elements
Resul Akay
dlist <- split_ts(retail_wide[,1], test_size = 12)