Learn R Programming

PANICr (version 0.0.0.2)

lagn: Create lags for matrix

Description

This function adds lags to a vector.

Usage

lagn(x,n)

Arguments

x
A 1XT vector to apply the lag to
n
the number of lags to add to the vector

Value

  • y A 1XT vector with a lag n added