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


ecm documentation built on May 29, 2024, 8:12 a.m.

Related to lagpad in ecm...