Re: [R] Subtracting time series

2010-02-02 Thread Achim Zeileis
On Tue, 2 Feb 2010, Nick Torenvliet wrote: Hi all, I've got a time series object (xts) called table. Table contains closing price and volume for each market day of 2009 on a given equity. I'd like to get another xts object, say table2, that contains for each market day holds the close of that

[R] Subtracting time series

2010-02-02 Thread Nick Torenvliet
Hi all, I've got a time series object (xts) called table. Table contains closing price and volume for each market day of 2009 on a given equity. I'd like to get another xts object, say table2, that contains for each market day holds the close of that day minus the close of the day before and the