lagn: Produce a vector lagged backward of forward

View source: R/Utils.R

lagnR Documentation

Produce a vector lagged backward of forward

Description

Produce a vector lagged backward of forward

Usage

lagn(x, i, na = NA)

Arguments

x

An initial vector.

i

Size of lag (lead if negative).

na

A value to fill missing observations, NA by default.

Value

Lagged or leaded vector.


d9d6ka/RANEPA-R documentation built on May 4, 2024, 7:11 a.m.