rollmean: Compute the moving average of window x.

Description Usage Arguments Value

Description

rollmean take a vector as input returns the moving average vector. The non computable data (the fist window-1 items) are replaced by NAs.

Usage

1

Arguments

x

a numeric vector.

window

integer, representing the width of the window.

Value

a numeric vector


FabienNicol/suppliesdash documentation built on May 6, 2019, 7:04 p.m.