Skip to contents

Uses NCBI's E-Utilities to retrieve bibliographic information given a vector of PubMed ID's and returns the results as a BibEntry object.

Usage

GetPubMedByID(id, db = "pubmed", ...)

Arguments

id

character vector; PubMed ID's for searching NCBI's Entrez.

db

string; Entrez database to search.

...

additional parameters to use for the search. See the Entrez documentation listed in the References.

Value

a BibEntry object.

Note

Returned entries will have bibtype “Article” or “Book”, unless a collection title is present -- in which case the bibtype will be “InBook” -- or there is no journal information returned for an article -- in which case the bibtype will be “Misc”.

See also

Examples

if (interactive() && !httr::http_error("https://eutils.ncbi.nlm.nih.gov/"))
  GetPubMedByID(c("11209037", "21245076"))