Skip to content
Prev 309189 / 398506 Next

rollapply() by time, not entries (width)

On Sat, Oct 27, 2012 at 6:52 AM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
I don't think that will work because it sounds like "J" wants analysis
on overlapping intervals, and period.apply works on non-overlapping
intervals.  I'd suggest using a for loop with the window() function.
But be careful about timezone and DST issues if your data is more
frequent than daily.
Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com