manyLaggedValues: Generate a series of lagged values.

Description Usage Arguments Value

Description

manyLaggedValues returns the dataset with lagged values (suffix Lx where x is the lag number)

Usage

1
manyLaggedValues(data, columnNames, timeColumn, lag, period = "months")

Arguments

data

A dataframe with data and a monthly period column

columnNames

Column names that are to be lagged

timeColumn

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

lag

The lag expressed in the number of months

period

The period name (deafult = months)

Value

A dataframe


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