Skip to content
Prev 1513 / 15274 Next

rolling window

On 7/19/07, Jordi Molins <jordi.molins.coronado at gmail.com> wrote:
rollapply (which was called rapply in old versions of zoo but was renamed
to avoid collisions with a new function of the same name in the core of R)
in zoo can handle multivariate zoo series either one column at a time (default)
or combined (via by.column = FALSE):
1   1 13
2   2 14
3   3 15
4   4 16
5   5 17
6   6 18
7   7 19
8   8 20
9   9 21
10 10 22
11 11 23
12 12 24
2   2 14
3   3 15
4   4 16
5   5 17
6   6 18
7   7 19
8   8 20
9   9 21
10 10 22
11 11 23
2  3  4  5  6  7  8  9 10 11
 8  9 10 11 12 13 14 15 16 17