Re: [R] Aggregating zoo object with NAs in multiple column

2008-07-23 Thread Achim Zeileis
On Wed, 23 Jul 2008, Abiel Reinhart wrote: I would like to run an aggregation on a zoo object that has multiple series in it, with one of more series having NA values. The problem is that by default the aggregate function will produce an NA value in each aggregated period that contains an NA. Fo

[R] Aggregating zoo object with NAs in multiple column

2008-07-23 Thread Abiel Reinhart
I would like to run an aggregation on a zoo object that has multiple series in it, with one of more series having NA values. The problem is that by default the aggregate function will produce an NA value in each aggregated period that contains an NA. For instance, if I run aggregate(x, as.yearmon(i