powered by
Split a time series into training and testing sets
split_ts(y, test_size = 10)
A list with train and test elements
A univariate time series
The number of observations to keep in the test set
Resul Akay
dlist <- split_ts(retail_wide[,1], test_size = 12)
Run the code above in your browser using DataLab