lag: Lagging variables for use in estimate functional

Description Usage Arguments Value Examples

View source: R/estimate_functional.R

Description

Lagging variables for use in estimate functional

Usage

1
lag(vector, lag = 1)

Arguments

vector

vector to be lagged

lag

number of lags

Value

lagged vector of same length with NAs at beginning

Examples

1
2
3
4
5
#lag example vector by one lag
lag(c(1,2,3))

#lag example vector by two lags
lag(c(1,2,3,4),lag=2)

Schmidtpk/PointFore documentation built on Dec. 10, 2020, 12:14 a.m.