Running mean of a vector

Share:

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))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.