1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
\name{pm.abstGrep}
\alias{pm.abstGrep}
\title{An interface to grep for PubMed abstracts.}
\description{
A user friendly interface to the functionality provided by
\code{pubmed}.
}
\usage{
pm.abstGrep(pattern, absts, ...)
}
\arguments{
\item{pattern}{A pattern for the call to \code{grep}.}
\item{absts}{A list containing abstracts downloaded using \code{pubmed} or
equivalent.}
\item{\dots}{Extra arguments passed to \code{grep}.}
}
\details{
The \code{absts} are a list of PubMed XML objects that have been downloaded
and parsed. This function lets the user quickly search the abstracts
for any regular expression. The returned value is a logical vector
indicating which of the abstracts contain the regular expression.
}
\value{
The returned value is a logical vector
indicating which of the abstracts contain the regular expression.
}
\author{Robert Gentleman}
\seealso{\code{\link{pm.getabst}}, \code{\link{pm.titles}}}
\examples{
library("hgu95av2.db")
hoxa9 <- "37806_at"
absts <- pm.getabst(hoxa9, "hgu95av2")
pm.abstGrep("SH3", absts[[1]])
pm.abstGrep("autism", absts[[1]])
}
\keyword{manip}
|