lagshift: Helper function for eLag.

Description Usage Arguments Value Examples

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)


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

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

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

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