entrez_summary: Get summaries of objects in NCBI datasets from a unique ID

Description Usage Arguments Value Examples

View source: R/entrez_summary.r

Description

Contstructs a query from the given arguments, including a database name and list of of unique IDs for that database then downloads the XML document created by that query. The XML document is parsed, with the

Usage

1

Arguments

db

character Name of the database to search for

...

character Additional terms to add to the request. Requires either ID (unique id(s) for records in a given database) or WebEnv (a character containing a cookie created by a previous entrez query).

Value

A list of esummary records (if multiple IDs are passed) or a single record.

file XMLInternalDocument xml file resulting from search, parsed with xmlTreeParse

Examples

1
2
3
4
5
6
## Not run: 
 pop_ids = c("307082412", "307075396", "307075338", "307075274")
 pop_summ <- entrez_summary(db="popset", id=pop_ids)
 sapply(popset_summ, "[[", "Title")

## End(Not run)

rentrez documentation built on May 2, 2019, 6:12 p.m.