laggedValue: Generate a vector of a lagged value for a single column.

Description Usage Arguments Value

Description

laggedValue returns a dataframe with a lagged column)

Usage

1
laggedValue(data, timeColumn, var, lag, period = "months")

Arguments

data

A dataframe with data and a monthly period column

timeColumn

The name of the period column (YYYY-MM-DD)

var

The name of the variable to be lagged

lag

The lag expressed in the number of months

period

The period name (deafult = months)

Value

A vector


mivanic/outlookHelpeR documentation built on July 4, 2019, 1:03 p.m.