Description Usage Arguments Value Examples
View source: R/MetGen_functions.R
Introduce lag effects for variables
1 | lagged.effect(var.mat, var.name, maxlag, nstat = NULL)
|
var.mat |
A data frame containing a chron variable and different climatic variables for each time step |
var.name |
Character object that forms the name of the climatic variable to be lagged |
maxlag |
Numeric vector that specifies the maximum amount of lag requested |
nstat |
Numeric vector that specifies the number of sites considered |
lagged effect for the variable var.name, will be observed, according to the amount of maxlag defined in the data frame introduced
1 2 | data_lagged4 <- lagged.effect(myclimatic_data, "temp",4, nstat=3)
data_lagged8 <- lagged.effect(myclimatic_data, "temp",8, nstat=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.