Computes the moving average about a time-series defined by a specified number of points.
     
    movingAverage(x, n = 3, centered = TRUE)
    Arguments
    
    
    
      | x | a vectorofnumerictime-series expression values. | 
    
      | n | a numericspecifying the number of points to use in the moving average. Defaultn = 3. | 
    
      | centered | a logicalscalar. Should the moving average be centered about the current points? DefaultTRUE(i.e. average of current point (p) withp - n/2andp + n/2). | 
    
    Value
    a vector containing the smoothed numeric moving average time-series expression values.
    See also