powered by
createEmbedDS(s, emb=4)
For instance for an embed of size 3 each row of the data set will contain the value of the series at time t, t-1 and t-2.
http://ltorgo.github.io/DMwR2
embed
## A simple example with a random time series x <- rnorm(100) head(x) dataSet <- createEmbedDS(x,emb=5) head(dataSet)
Run the code above in your browser using DataLab