Description Usage Arguments Value See Also
Creates a window around each seasonal lag, with width+shift
/width-shift
on each side.
1 2 | seasonal_lag_windows(x, P = 1, freq = frequency(x), width = 0,
shift = 0, no_peeking = TRUE, pstr = deparse(substitute(x)))
|
x |
data input (can handle multi-column data, such as data.frames) |
P |
seasonal window length |
freq |
seasonal frequency |
width |
width of the left or right window |
shift |
shifts each window towards the end of time-series |
no_peeking |
if TRUE, lags <= 0 (from now and future) are removed |
pstr |
name of data column |
A time-series object of lagged and leaded x
lag_windows
, centered_lagged_windows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.