rollmean: Rolling mean

Description Usage Arguments Value Examples

Description

Take the rolling mean of 'x' over 'n' elements

Usage

1
rollmean(x, n)

Arguments

x

data vector

n

span of rolling mean

Value

Rolling mean of the input

Examples

1
rollmean(c(1,2,3),2) ## NA, 1.5, 2.5 

dateutils documentation built on Nov. 10, 2021, 5:09 p.m.