lags | R Documentation |
Function lags: lagged matrix
lags(x, k = 1)
x |
is a matrix |
k |
the number of lags #load data data(exampledata) m=as.matrix(exampledata$y) lags(m,k=2) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.