split_ts {caretForecast}R Documentation

Split a time series into training and testing sets

Description

Split a time series into training and testing sets

Usage

split_ts(y, test_size = 10)

Arguments

y

A univariate time series

test_size

The number of observations to keep in the test set

Value

A list with train and test elements

Author(s)

Resul Akay

Examples


dlist <- split_ts(retail_wide[,1], test_size = 12)


[Package caretForecast version 0.1.1 Index]