lagshift: Helper function for eLag.

Description Usage Arguments Value Examples

View source: R/expandFunctions.R

Description

Generates shifted columns.

Usage

1
lagshift(x, i, lagMax, pad)

Arguments

x

Input vector

i

Shift (integer)

lagMax

Maximum lag that will be needed

pad

Scalar used for padding.

Value

vector padded front and back with padding appropriate for generating lag.

Examples

1
lagshift(1:3,0,1,NA)

expandFunctions documentation built on May 2, 2019, 9:15 a.m.