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 19, 2017, 10:11 p.m.

Search within the expandFunctions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.