Hi Henrique, Lot of thanks for your advice which is a little complicate to me. It involves multiple R commands:
> 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)) [1] "DNase" > DNase Run conc density 1 1 0.04882812 0.017 2 1 0.04882812 0.018 3 1 0.19531250 0.121 4 1 0.19531250 0.124 ....... It works for me. grep - is simliar to sh command "grep, egrep, fgrep, rgrep - print lines matching a pattern" which - differs from sh command "which - locate a command" Wonderful !!! B.R. Stephen L ________________________________ From: Henrique Dallazuanna <www...@gmail.com> Cc: r-help@r-project.org Sent: Fri, November 26, 2010 12:35:23 AM Subject: Re: [R] About searching criteria 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)) 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.