| pubMedAbst-class | R Documentation |
This is a class representation for PubMed abstracts.
new('pubMedAbst',
authors = ...., # Object of class vector
pmid = ...., # Object of class character
abstText = ...., # Object of class character
articleTitle = ...., # object of class character
journal = ...., # Object of class character
pubDate = ...., # Object of class character
)
pmid:Object of class "character" The PubMed ID
for this paper.
authors:Object of class "vector" The authors
of the paper.
abstText:Object of class "character" The
contained text of the abstract.
articleTitle:Object of class "character" The
title of the article the abstract pertains to.
journal:Object of class "character" The journal
the article was published in.
pubDate:Object of class "character" The date the
journal was published.
signature(object = "pmid"): An accessor function
for pmid
signature(object = "pubMedAbst"): An accessor
function for abstText
signature(object = "pubMedAbst"): An accessor
function for articleTitle
signature(object = "pubMedAbst"): An accessor
function for authors
signature(object = "pubMedAbst"): An accessor
function for journal
signature(object = "pubMedAbst"): An accessor
function for pubDate
Jeff Gentry
pubmed, genbank
x <- pubmed("9695952","8325638","8422497")
a <- xmlRoot(x)
numAbst <- length(xmlChildren(a))
absts <- list()
for (i in 1:numAbst) {
absts[[i]] <- buildPubMedAbst(a[[i]])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.