Learn R Programming

PheVis (version 1.0.4)

cum_lag: cum_lag

Description

helpful function to cumulate information.

Usage

cum_lag(x, n_lag)

Value

return numeric vector.

Arguments

x

numeric vector for which lag variable should be computed

n_lag

size of lag window