Closed schifferl closed 3 years ago
I'm turning my attention to this next.
PubMed()
and PubMed class S4 objects are now added. There are some outstanding issues to be resolved:
RISmed
. It seems to just return a list of all affiliations with no easy way to associate them with a given author.Works well enough, closing.
Overview
Write a method to obtain citation information from PubMed using the
RISmed
package. The method,PubMed
, should return alist
of threedata.frame
objects containing citation information. Provided with only aPMID
the method should return the tables shown below.An example of what a call to the
PubMed
method should look like:Components
Journal Information
The first of the three
data.frame
objects returned in thelist
should, at the minimum, contain the following fields.Author Information
The second of the three
data.frame
objects returned in thelist
should provide details about the authors of the publication. Specifically, anorder
field should be provided to denote the order of authorship as it appears in the publication.Affiliation Information
The third of the three
data.frame
objects returned in thelist
should provide details about author affiliations. These affiliations should be related to the author information by theorder
field.Show Method
When a
PubMed
class object is called from theR
console, as follows, it should have a show method to display the relevant details of the object in an orderly fashion.For example, the call above should produce the output that follows. As seen, the output should be limited to line lengths of 80 or fewer characters and display the information in logical order.