# Setting up a ts_data and projecting (X, y)
# Load example dataset and create windows
data(tsd)
ts <- ts_data(tsd$y, 10)
io <- ts_projection(ts)
# Input data (features)
ts_head(io$input)
# Output data (target)
ts_head(io$output)
Run the code above in your browser using DataLab