Split a time series

split_ts(y, p = 0.8, return_indices = FALSE)

Arguments

y

univariate or multivariate time series

p

proportion of data in training set

return_indices

return indices instead of time series?