| pubMedAbst-class {annotate} | 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
abstUrl = ...., # Object of class character
)
pmid:"character" The PubMed ID
for this paper. authors:"vector" The authors
of the paper. abstText:"character" The
contained text of the abstract. articleTitle:"character" The
title of the article the abstract pertains to. journal:"character" The journal
the article was published in. pubDate:"character" The date the
journal was published. abstUrl:"character" A URL, if
one is provided, contained in the abstract. signature(object = "pmid"): An accessor function
for pmidsignature(object = "pubMedAbst"): An accessor
function for abstTextsignature(object = "pubMedAbst"): An accessor
function for abstUrl 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 pubDateJeff Gentry
x <- pubmed("9695952","8325638","8422497")
a <- xmlRoot(x)
numAbst <- length(xmlChildren(a))
absts <- list()
for (i in 1:numAbst) {
absts[[i]] <- buildPubMedAbst(a[[i]])
}