R/funcsAnnotation.R

Defines functions getAbstractByPMID

Documented in getAbstractByPMID

getAbstractByPMID <- function(pmID){

pmXML <- pubmed(pmID)
pmRoot <- xmlRoot(pmXML)
numAbst <- length(pmRoot)
abstracts <- vector("list", length=numAbst)
for(i in 1:numAbst){
  abstracts[[i]] <- buildPubMedAbst(pmRoot[[i]])
}
names(abstracts) <- pmID
return(abstracts)

}

Try the RpsiXML package in your browser

Any scripts or data that you put into this service are public.

RpsiXML documentation built on Nov. 8, 2020, 6:02 p.m.