Skip to content
Prev 2022 / 15274 Next

Solicitation of opinions on which Timeseries object(s) to utilize.

Joe W. Byers wrote:
I think that this is the right venue for this discussion.

I think that ts and tseries can be basically written off in favor of 
zoo, which is much better and fully backwards compatible because of 
robust as. methods and proper use of reclass()

I would *like* to say that the Rmetrics timeSeries class is the right 
one for your needs, because of its support for multiple financial 
centers.  If you have intraday-data from multiple locations around the 
world and need to line it all up, timeseries is currently the only class 
that will solve your problems.

That said, timeSeries has some serious interoperability issues with the 
rest of R.  These could be easily solved with some as. (most notably an 
as.zoo method that worked well) methods, but those haven't been publicized.

Jeff Ryan recently published an extension to zoo called xts.  I think it 
might address many of the issues you describe, as well as offering 
better compatibility between timeSeries and zoo.  It also has many 
features for manipulating the periods (days,weeks,moths,quarters) that 
should be highly useful for the application you describe.

Regards,

    - Brian