movingAverage: Computes the Moving Average of a Single Time-Series

Description Usage Arguments Value See Also

View source: R/movingAverage.R

Description

Computes the moving average about a time-series defined by a specified number of points.

Usage

1
movingAverage(x, n = 3, centered = TRUE)

Arguments

x

a vector of numeric time-series expression values.

n

a numeric specifying the number of points to use in the moving average. Default n = 3.

centered

a logical scalar. Should the moving average be centered about the current points? Default TRUE (i.e. average of current point (p) with p - n/2 and p + n/2).

Value

a vector containing the smoothed numeric moving average time-series expression values.

See Also

movingAverageDF


nesscoder/TimeCycle documentation built on June 29, 2021, 5:16 a.m.