Jonathan Callahan has an interesting R package for us:
The initial release of MazmaRollUtils provides all the basic rolling functions with features like alignment and missing value removal along with additional capabilities for smoothing, damping and outlier detection — all common activities in time series analysis.
Click through for an explanation of the process, and then check out the package itself on GitHub. H/T R-Bloggers.