lagged.effect {MetGen} | R Documentation |
lag effect
Description
Introduce lag effects for variables
Usage
lagged.effect(var.mat, var.name, maxlag, nstat = NULL)
Arguments
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 |
Value
lagged effect for the variable var.name, will be observed, according to the amount of maxlag defined in the data frame introduced
Examples
data_lagged4 <- lagged.effect(myclimatic_data, "temp",4, nstat=3)
data_lagged8 <- lagged.effect(myclimatic_data, "temp",8, nstat=3)
[Package MetGen version 0.5 Index]