pubmed_fetch: Download data from Pubmed

Description Usage Arguments Value Examples

Description

Download data from Pubmed

Usage

1
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

1
2
3
4
5
6
## 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)

rOpenHealth/rpubmed documentation built on May 26, 2019, 8:51 p.m.