Rdocumentation
powered by
Learn R Programming
PANICr (version 1.0.0)
lagn: Create lags for matrix
Description
This function adds lags to a vector.
Usage
lagn(x,n)
Arguments
x
A vector to apply the lag to
n
The number of lags to add to the vector
Value
y A vector with a lag n added