entrez_db_searchable: List available search fields for a given database

Description Usage Arguments Value See Also Examples

Description

Fetch a list of search fields that can be used with a given database. Fields can be used as part of the term argument to entrez_search

Usage

1
entrez_db_searchable(db, config = NULL)

Arguments

db

character, name of database to get search field from

config

config vector passed to httr::GET

Value

An eInfoSearch object (subclassed from list) summarizing linked-databases. Can be coerced to a data-frame with as.data.frame. Printing the object shows only the names of each available search field.

See Also

entrez_search

Other einfo: entrez_db_links, entrez_db_summary, entrez_dbs, entrez_info

Examples

1
2
3
4
5
6
7
pmc_fields <- entrez_db_searchable("pmc")
pmc_fields[["AFFL"]]
entrez_search(db="pmc", term="Otago[AFFL]", retmax=0)
entrez_search(db="pmc", term="Auckland[AFFL]", retmax=0)

sra_fields <- entrez_db_searchable("sra")
as.data.frame(sra_fields)

rentrez documentation built on May 6, 2019, 1:03 a.m.