Learn R Programming

rpubmed (version 0.1)

pubmed_fetch: Download data from Pubmed

Description

Download data from Pubmed

Usage

pubmed_fetch(ids, file_format = "xml", as_r_object = TRUE, ...)

Arguments

ids
integer Pubmed ID's to get abstracts and metadata from
file_format
character Format in which to get data (eg, fasta, xml...) default = "xml"
as_r_object
boolean if TRUE, parses returned xml to R objects (nested lists), else returns xml
...
character Additional terms to add to the request

Value

list or character string containing abstratcs and metadata for each ID (see as_r_object)

Examples

Run this code
## Not run: 
# # Get IDs via rentrez_search:
# plasticity_ids <- entrez_search("pubmed", "phenotypic plasticity", retmax = 2600)$ids[1:100]
# plasticity_records <- pubmed_fetch(plasticity_ids)
# ## End(Not run)

Run the code above in your browser using DataLab