smooth.ma: Apply a moving average filter

Description Usage Arguments Details Value Examples

View source: R/itsmr.R

Description

Apply a moving average filter

Usage

1

Arguments

x

Time series data

q

Filter order

Details

The averaging function uses 2q+1 values.

Value

Returns a vector the same length as x.

Examples

1
2

itsmr documentation built on Sept. 11, 2018, 1:05 a.m.