Skip to content
Prev 5130 / 15274 Next

Discretising intra-day data using zoo?

See the aggregate.zoo example in vignette("zoo-quickref") but round up
to the next 4 seconds instead of next Friday:
spread    ltp
2009-02-16 05:00:04 0.0050 48.715
2009-02-16 05:00:08 0.0025 48.715
2009-02-16 05:00:12 0.0025 48.715
2009-02-16 05:00:16 0.0025 48.715
On Sun, Nov 8, 2009 at 2:10 AM, Ajay Shah <ajayshah at mayin.org> wrote: