ms: Computing moving sum of all past values including last value...

Description Usage Arguments Value

View source: R/utilities.R

Description

Computing moving sum of all past values including last value using a window size

Usage

1
ms(z, window_size = 3L)

Arguments

z

the numeric vector

window_size

the integer window size

Value

a vector of the same length pre-padded with NAs


bnaras/SBCpip documentation built on May 5, 2019, 6:54 p.m.