Description Usage Arguments Value
laggedValue
returns a dataframe with a lagged column)
1 | laggedValue(data, timeColumn, var, lag, period = "months")
|
data |
A dataframe with data and a monthly period column |
timeColumn |
The name of the period column (YYYY-MM-DD) |
var |
The name of the variable to be lagged |
lag |
The lag expressed in the number of months |
period |
The period name (deafult = months) |
A vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.