shift_subset: shift_subset

Description Usage Arguments Value

View source: R/RcppExports.R

Description

lag data and subset the results

Usage

1
shift_subset(x, lag = 0L, n_subset = 1L, n_shift = 0L)

Arguments

x

numeric vector to lag

lag

integer vector with the lags

n_subset

integer subset every n_subset values

n_shift

integer amount to shift results

Value

vector with lagged values


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