diff_shift: diff_shift

Description Usage Arguments Value Examples

View source: R/be_lag_difference.R

Description

Calculate lagged differences padded with NA values

Usage

1
diff_shift(x, lag_space = 1)

Arguments

x

vector to difference (numeric)

lag_space

spacing for lags, useful for higher frequency monitoring (integer).

Value

lagged differences

Examples

1
diff_shift(1:100, 2)

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