Performs a running average on a numeric vector
moving_average(x, n)
Arguments
x |
a numeric vector |
n |
integer, radius of the moving avergae (number of points extending on each side of the
center point on which the average is computed) |
Value
a smoothed numeric vector