Description Usage Arguments Value
View source: R/create_lagged.R
Creates a new data frame(?) with Lag/Lead values. Also one may exclude the features(columns) from "lag process" but have them with the new data frame
1 | create_lagged(data, lags, exclude_head = NULL, exclude_tail = NULL)
|
data |
input data |
lags |
list of wanted lags. Negative values correspond to lags while positives correspond to leads. |
exclude_head |
the columns of data that is not subject to lagging process (e.g. date/hour). Will be merged to left-side of the lagged data. |
exclude_tail |
the columns of data that is not subject to lagging process (e.g. production). Will be merged to right-side |
Data with more columns as lagged versions of existing columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.