ma: Get trailing moving average

View source: R/btools_stats.r

maR Documentation

Get trailing moving average

Description

ma Get trailing moving average

Usage

ma(x, n)

Arguments

x

The vector to operate on.

n

The period of the moving average.

Details

Moving average of the vector x.

Examples

ma(7:21, 3)

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.