View source: R/lag_functions.R
the function first arranges by Date
1 2 | calculateLagGroupedDF(x, vars, arrange.variable = "Date",
grouping.variable = "PlantID")
|
x |
the dataset |
vars |
the vector of variables |
arrange.variable |
is variable that arranges the data. Defaults to "Date". |
grouping.variable |
is the variable that groups the data. Defaults to "PlantID". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.