runmean: Moving average.

Description Usage Arguments Details Value Author(s) Examples

View source: R/RcppExports.R

Description

runmean computes the moving average of a time series.

Usage

1

Arguments

a

Vector of values representing the original time series.

width

The number of values to consider for the average.

Details

details.

Value

A moving average of the time series.

Author(s)

Erick A. Chacon-Montalvan

Examples

1
2
3
4
x <- 1:10
runmean(x, width = 1)
runmean(x, width = 2)
runmean(x, width = 3)

ErickChacon/mbsi documentation built on Dec. 23, 2017, 12:43 a.m.