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/day2day documentation built on May 6, 2019, 4:03 p.m.