Description Usage Arguments Value Examples
View source: R/EWS_functions.R
Compute a lagged version of a time series, shifting the time base back by a given number of observations defined by the user. The user must enter three parameters for this function: the matrix, the number of lags, and of boolean variable calls 'beginning'. If 'beginning'=TRUE, then the lag will be applied at the beginning of the matrix whereas if 'beginning'=FALSE, then the lag will be applied at the end of the matrix.
1 | Matrix_lag(Matrix_target, Nb_lag, beginning)
|
Matrix_target |
Initial Matrix |
Nb_lag |
Number of lag |
beginning |
Boolean variable. If 'place'=TRUE, the lag is applied at the beginning of the matrix. If 'place'=FALSE, the lag is applied at the end of the matrix. |
A numeric Matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.