Questions tagged [rollapply]

rollapply is a function in the zoo package used to perform rolling operations on an object.

rollapply is a function in the zoo package used to apply operations sequentially over elements of an object. Examples are returning a rolling mean for a vector or performing a regression on each of several partially-overlapping subsets, or rolling subsets, of a data set.

256 questions
-2
votes
3 answers

zoo::rollapply window with over column values rather than rows

dat = structure(list(index = c(10505L, 10506L, 10511L, 10539L, 10542L, 10579L, 10642L, 11008L, 11012L, 13011L, 13110L, 13116L, 13118L, 13156L, 13259L, 13273L, 13313L, 13365L, 13380L, 13382L, 13445L, 13453L, 13482L, 13483L, 13494L, 13543L, 13550L,…
user438383
  • 5,716
  • 8
  • 28
  • 43
1 2 3
17
18