lag_matrix: lag_matrix

Description Usage Arguments Value

View source: R/RcppExports.R

Description

lag data and subset the results

Usage

1
lag_matrix(x, lags, n_subset = 1L, n_shift = 0L, var_name = "lag")

Arguments

x

numeric vector to lag

lags

integer vector with the lags

n_subset

integer subset every n_subset values

n_shift

integer amount to shift results

var_name

character name for the generated matrix columns

Value

matrix with lagged values


jkennel/waterlevel documentation built on Dec. 1, 2019, 6:24 p.m.