[R] help.search intersection

Thomas Lumley tlumley at u.washington.edu
Wed Oct 20 16:47:05 CEST 2004


On Tue, 19 Oct 2004, Vadim Ogranovich wrote:

> Hi,
>
> Is it possible to search for help pages that meet more than one criteria
> at a time? Say I want to search for all help pages that mention
> "cross-validation" AND "bootstrap". How do I do this?
>

I think you have to intersect them afterwards

a<-help.search("bootstrap")
b<-help.search("cross-validation")
both<-intersect(a$matches[,1],b$matches[,1])
a$matches<-a$matches[both,,drop=FALSE]
a

 	-thomas




More information about the R-help mailing list