runn_mean: Running mean of a vector

Description

Function to calculate the running mean of a numeric vector

Usage

1

Arguments

vec

numeric vector

runn_mean

number of vector elements to use for calculating the running mean

Value

numeric vector containing the running mean

Author(s)

Eike Luedeling

Examples

1
plot(runn_mean(rnorm(1000),150))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.