Try this: d <- data() ne <- new.env() data(list = grep("\\(", d$results[,'Item'], value = TRUE, invert = TRUE), envir = ne) out <- eapply(ne, names) names(which(lapply(lapply(out, '%in%', c("Run", "conc", "density")), sum) == 3))
On Thu, Nov 25, 2010 at 1:38 PM, Stephen Liu <sati...@yahoo.com> wrote: > Hi folks, > > I need to search the dataset on data with name on heading; > Run conc density > > > I look at ??help.search and could not resolve; > > help.search(pattern, fields = c("alias", "concept", "title") > > What shall I replace "pattern"? > > I suppose replacing "alias", "concept", "title" with "Run", "conc", > "density" ? > > Please help. TIA > > B.R. > Stephen L > > > > ______________________________________________ > 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ 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.