Description Usage Arguments Value
Collects and embeds lagged windows of data.
1 2 | lagmatrix(x, lag_indices, pstr = deparse(substitute(x)), no_peeking = FALSE,
...)
|
x |
data input (can handle multi-column data, such as data.frames) |
lag_indices |
index of lags to embed. Can be empty |
pstr |
name of datacolumn (only used if x is a single column or vector) |
no_peeking |
if TRUE, lags <= 0 (from now and future) are removed |
... |
Not used |
a matrix of lagged windows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.