A numeric vector of the same length as x containing the calculated rolling means, with the first and last few values being NA (depending on the setting for width)
Arguments
x
Numeric vector for which to calculate the rolling mean.
width
Width of the interval over which to calculate rolling mean values. Should be an uneven number (even numbers are coerced into the next-higher uneven number)