[R] list matching

Adrian Dusa dusa.adrian at gmail.com
Sun Oct 7 18:33:04 CEST 2007


On Sunday 07 October 2007, Gabor Grothendieck wrote:
> I thought the latest zoo fixes were on CRAN but perhaps they
> are not.   Try this:
>
> library(zoo)
> # next line loads latest version of merge.zoo (fixed in August)
> source("http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/
>pkg/R/merge.zoo.R?rev=361&root=zoo")
>
> as.vector(time(do.call(merge, c(lapply(aa, function(x) zoo(,x)), all =
> FALSE))))

Yeap, that fixes it.
Ah-haa, so all = FALSE is merge()s argument...
Neat :)
Adrian


-- 
Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd
050025 Bucharest sector 5
Romania
Tel./Fax: +40 21 3126618 \
          +40 21 3120210 / int.101



More information about the R-help mailing list