Computes the moving average about a time-series defined by a specified number of points.
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