movingAve: Moving / rolling average

View source: R/CodeAndRoll2.R

movingAveR Documentation

Moving / rolling average

Description

Calculates the moving / rolling average of a numeric vector.

Usage

movingAve(x, oneSide = 5)

Arguments

x

A numeric vector.

oneSide

The size of the moving window. Defaults to 5.

Value

A vector of the moving averages.

Examples

movingAve(1:5)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.