Re: [R] Subsetting list of vectors with list of (boolean) vectors? Johannes Graumann  writes: > Dear Rologists, > > I'm stuck with this. How would you do this efficiently: > >> aPGI > [[1]] > [1] "864"  "5576" > > >> aPGItest > [[1]] > [1]  TRUE FALSE > >> result <- [magic box involving subset) result <- aPGI[aPGItest[[1]]] >> result > [[1]] > [1] "864" > + seth --  Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org ______________________________________________ R-help@stat.math.ethz.ch 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.