lag_v: Make a lagged copy of a vector

Description Usage Arguments Details Value

View source: R/helper_functions.R

Description

Make a lagged copy of a vector

Usage

1
lag_v(x)

Arguments

x

Input vector

Details

Not normally called directly, but via the cp_wrapper function instead.

Value

y A lagged copy of the input vector x, with the first entry repeated


ontogenerator/cpdetectoR documentation built on May 14, 2019, 1:59 a.m.