R/meanAlong.R
meanAlong.Rd
This function is a simple moving window function.
meanAlong(vec, n)
a vector of numeric.
an integer indicating the size of the window.
meanAlong(1:10, 2) #> [1] 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5 9.5