lagged.effect: lag effect

Description Usage Arguments Value Examples

View source: R/MetGen_functions.R

Description

Introduce lag effects for variables

Usage

1
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

1
2
data_lagged4 <- lagged.effect(myclimatic_data, "temp",4, nstat=3)
data_lagged8 <- lagged.effect(myclimatic_data, "temp",8, nstat=3)

MetGen documentation built on July 2, 2020, 1:46 a.m.