step_group_lag | R Documentation |
step_group_lag
creates a specification of a recipe
step that will creates 1:4 & 10 lag values by group of user specified
step_group_lag( recipe, ..., role = "predictor", trained = FALSE, lag_table = NULL, skip = FALSE, id = recipes::rand_id("group_lag") )
recipe |
A recipe object. The step will be added to the sequence of operations for this recipe. |
... |
One or more selector functions to choose variables
for this step. See |
role |
Not used by this step since no new variables are created. |
trained |
A logical to indicate if the quantities for preprocessing have been estimated. |
lag_table |
Group Lag table with lag values. This is
|
skip |
A logical. Should the step be skipped when the
recipe is baked by |
id |
A character string that is unique to this step to identify it. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.