ma: Moving Average

View source: R/statistics.misc.R

maR Documentation

Moving Average

Description

Calculate the moving average from a series of observations. NB: It assumes equally spaced observations

Usage

ma(x, n = 5)

Arguments

x

A vector containing equally spaced observations

n

The number of samples to include in the moving average.

Author(s)

Thomas Bryce Kelly


tbrycekelly/TheSource documentation built on Nov. 7, 2023, 12:48 a.m.