CasesSeries function

Create a training set (data.frame) from a time series using a sliding window.