Skip to content
Prev 138137 / 398506 Next

Idioms for a timeseries operation - moving window

Try:

rollapply(x, 3, force)

or

embed(x, 3)[, 3:1]
On Sun, Mar 2, 2008 at 9:53 AM, Bo Zhou <bozhou1981 at hotmail.com> wrote: