lag: return lag series

Description Usage Arguments Details

View source: R/vava_funset.R

Description

a simple method to get lag series

Usage

1
lag(x, k = 1)

Arguments

x

a numeric vector

k

how many times to lag

Details

returned series will have k NA in the head


Nisus-Liu/vava documentation built on May 9, 2017, 2:16 p.m.