powered by
Introduce lag effects for variables
lagged.effect(var.mat, var.name, maxlag, nstat = NULL)
A data frame containing a chron variable and different climatic variables for each time step
Character object that forms the name of the climatic variable to be lagged
Numeric vector that specifies the maximum amount of lag requested
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
# NOT RUN { data_lagged4 <- lagged.effect(myclimatic_data, "temp",4, nstat=3) data_lagged8 <- lagged.effect(myclimatic_data, "temp",8, nstat=3) # }
Run the code above in your browser using DataLab