Description Usage Arguments Value
Calculate lag and lead of a variable
1 | step_shift(rec, o_var, n_var, type = c("lag", "lead"), shift_window)
|
rec |
A rec object |
o_var |
Old variable to transform |
n_var |
New variable name |
type |
Lag of lead |
shift_window |
The shifting window (integer) |
A rec object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.