Re: [R] Merging Irregular Time Series With NAs

2009-06-23 Thread Gabor Grothendieck
On Tue, Jun 23, 2009 at 10:10 AM, Gabor Grothendieck wrote: > On Tue, Jun 23, 2009 at 10:04 AM, David Winsemius > wrote: >> >> On Jun 23, 2009, at 9:50 AM, Gabor Grothendieck wrote: >> >>> Your zoo object is illegal since zoo objects are not supposed to >>> have duplicated times; >> >> They were u

Re: [R] Merging Irregular Time Series With NAs

2009-06-23 Thread Gabor Grothendieck
On Tue, Jun 23, 2009 at 10:04 AM, David Winsemius wrote: > > On Jun 23, 2009, at 9:50 AM, Gabor Grothendieck wrote: > >> Your zoo object is illegal since zoo objects are not supposed to >> have duplicated times; > > They were unique at the sub-second level. > >> however, ignoring that if the object

Re: [R] Merging Irregular Time Series With NAs

2009-06-23 Thread David Winsemius
On Jun 23, 2009, at 9:50 AM, Gabor Grothendieck wrote: Your zoo object is illegal since zoo objects are not supposed to have duplicated times; They were unique at the sub-second level. however, ignoring that if the object has at most one NA in each row, which is the case in the example, the

Re: [R] Merging Irregular Time Series With NAs

2009-06-23 Thread David Winsemius
On Jun 23, 2009, at 9:29 AM, rory.wins...@gmail.com wrote: Hi I have two irregular time series, which are of different lengths and being and end at different times. For the common subset of time that they both span, they should have the same values, but the values may occur at slightly di

Re: [R] Merging Irregular Time Series With NAs

2009-06-23 Thread Gabor Grothendieck
Your zoo object is illegal since zoo objects are not supposed to have duplicated times; however, ignoring that if the object has at most one NA in each row, which is the case in the example, then this will produce a numeric vector and you can create a new zoo object out of that: > rowSums(z, na.rm

[R] Merging Irregular Time Series With NAs

2009-06-23 Thread rory . winston
Hi I have two irregular time series, which are of different lengths and being and end at different times. For the common subset of time that they both span, they should have the same values, but the values may occur at slightly different time intervals. I am trying to "line up" the identical