Skip to content
Prev 281008 / 398503 Next

Optimising timeboxing in xts

I might try something like this, untested: (I think you can do a
vector of arguments to `[.xts` but I'm not in a position to verify)

# let n be the times you want
# i be the width of the intervals

x[paste(n - i, n + i, sep = "::")]

Hope this helps,

Michael
On Fri, Dec 23, 2011 at 11:55 PM, Hasan Diwan <hasan.diwan at gmail.com> wrote: