lagpad: Lag a vector

View source: R/lagpad.r

lagpadR Documentation

Lag a vector

Description

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

Usage

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 Feb. 12, 2024, 1:11 a.m.