Skip to content
Prev 4646 / 15274 Next

xts() speed on data with date index

The explanation for the time difference is likely that xts
converts all time indexes to POSIXct internally whereas
zoo works with them in their original form.   Thus the
time difference would be expected to be the conversion time.

Once its converted then xts would likely be faster for those
xts operatoins where the xts code is in C.  In contrast zoo
is 100% R although eventually it is anticipated that portions
of zoo will be in C too.

As xts in a subclass of zoo some of its operations are done
in zoo so in that case there would not be much of a difference
in speed or if xts handles the corresponding operation itself
but in R then it would not be expected that there would be
much difference either.
On Sat, Jul 25, 2009 at 8:59 AM, michael li<michaellibeijing at gmail.com> wrote: