Learn R Programming

reutils (version 0.1.1)

einfo: einfo - getting database statistics and search fields

Description

einfo performs calls to the NCBI EInfo utility to retrieve the names of all valid Entrez databases, or, if db is provided, to retrieve statistics for a single database, including lists of indexing fields and available link names.

Usage

einfo(db = NULL)

Arguments

db
A valid NCBI database name. If NULL, a list of all current NCBI databases is returned.

Value

  • A einfo object.

Details

See the official online documentation for NCBI's http://www.ncbi.nlm.nih.gov/books/NBK25499/#chapter4.EInfo{EUtilities} for additional information.

See Also

content, getUrl, getError.

Examples

Run this code
## Return a list of all current Entrez database names
einfo()
## Return statistics for the Entrez Gene database and parse
## the returned data into a data.frame
x <- einfo("gene")
content(x, "parsed")

Run the code above in your browser using DataLab