lagpad: Lag a vector

Description Usage Arguments Value

View source: R/lagpad.r

Description

Create a vector of the lag of a variable and fill missing values with NA's.

Usage

1
lagpad(x, k = 1)

Arguments

x

A vector to be lagged

k

The number of lags to output

Value

The lagged vector with NA's in missing values


gaurbans/ecm documentation built on Jan. 6, 2019, 3:07 a.m.