buildPubMedAbst: A function to generate an instantiation of a pubMedAbst class

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pubMedAbst.R

Description

This function will take in a XML tree object and will create an instance of a pubMedAbst class. This instance is returned to the caller.

Usage

1

Arguments

xml

A XMLTree object that corresponds to a Pubmed abstract.

Value

This function returns an instantiation of a pubMedAbst object to the caller.

Author(s)

Jeff Gentry

See Also

pubmed,genbank

Examples

1
2
3
4
5
6
7
   x <- pubmed("9695952","8325638","8422497")
   a <- xmlRoot(x)
   numAbst <- length(xmlChildren(a))
   absts <- list()
   for (i in 1:numAbst) {
      absts[[i]] <- buildPubMedAbst(a[[i]])
   }

annotate documentation built on Nov. 8, 2020, 8:14 p.m.