Description Usage Arguments Details Value See Also Examples
einfo
queries 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. Version 2.0 data is requested by default.
1 |
db |
A valid NCBI database name. If |
version |
Specifies version 2.0 EInfo XML. Set to |
retmode |
'xml' (default) or 'json'. |
See the official online documentation for NCBI's EUtilities for additional information.
An einfo
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
## Fetch a list of all current Entrez database names
einfo()
## Fetch statistics for an Entrez database and parse
## the data into a data.frame
x <- einfo("gene")
if (x$no_errors()) {
content(x, "parsed")
}
## Fetch statistics for an Entrez database in JSON format
## and parse the data into a list
x <- einfo("pubmed", retmode = "json")
if (x$no_errors()) {
content(x, "parsed")
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.