On Tue, Jun 23, 2009 at 10:10 AM, Gabor Grothendieck<ggrothendi...@gmail.com> wrote: > On Tue, Jun 23, 2009 at 10:04 AM, David Winsemius<dwinsem...@comcast.net> > 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 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 = TRUE) >>> >>> [1] 1.63755 1.63760 1.63760 1.63755 1.63755 1.63760 >> >> But that will not give the desired answer if both aq$mid and d2$mid were >> present at the same time. > > What was written was: > "if the object has at most one NA in each row, which is the case in > the example, ..." >
hit send too quickly. continuing: but what was meant was at most one non-NA. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.