View source: R/deepTimeSeries.r
| lags | R Documentation |
lags builds a lagged data series or entire data set.
lags(x, k = 1, between = FALSE, na = NA)
x |
A vector for building a lagged data series or an entire data set. |
k |
The number of lags. A lag denotes a delay in time or a period shift. A lagged variable, also known as delayed variable, holds the values of past or future periodic values of the variable itself, depending on the direction of the shift.
The sign of |
between |
Controls whether only the desired |
na |
A sign which is used to indicate a missing value in a shifted period. |
A lagged data series.
Other Time Series:
diff_log(),
diff_percentage(),
diffinv_log(),
diffinv_percentage(),
diffinv_simple(),
get_season(),
invert_differencing(),
partition(),
period(),
stationary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.