Retrieve taxonomic identifiers for a given taxon name.
This is a convenience function to get identifiers across all data sources.
You can use other get_*
functions to get identifiers from specific
sources if you like.
get_ids( sci_com, db = c("itis", "ncbi", "eol", "tropicos", "gbif", "nbn", "pow"), suppress = FALSE, names = NULL, ... ) get_ids_( sci_com, db = get_ids_dbs, rows = NA, suppress = FALSE, names = NULL, ... )
sci_com |
(character) Taxonomic name to query. |
db |
(character) database to query. One or more of |
suppress |
(logical) suppress cli separators with the database
name being queried. default: |
names |
Deprecated, see |
... |
Other arguments passed to |
rows |
(numeric) Any number from 1 to infinity. If the default NA, all
rows are returned. When used in |
A vector of taxonomic identifiers, each retaining their respective S3 classes so that each element can be passed on to another function (see e.g.'s).
See taxize-authentication for help on authentication
There is a timeout of 1/3 seconds between queries to NCBI.
Other taxonomic-ids:
get_boldid()
,
get_eolid()
,
get_gbifid()
,
get_iucn()
,
get_natservid()
,
get_nbnid()
,
get_pow()
,
get_tolid()
,
get_tpsid()
,
get_tsn()
,
get_uid()
,
get_wiki()
,
get_wormsid()
## Not run: # Plug in taxon names directly # specify rows to limit choices available get_ids("Poa annua", db="eol", rows=1) get_ids("Poa annua", db="eol", rows=1:2) ## Or you can specify which source you want via the db parameter get_ids("Chironomus riparius", db = 'ncbi') get_ids("Salvelinus fontinalis", db = 'nbn') get_ids(c("Chironomus riparius", "Pinus contorta"), db = 'ncbi') get_ids("Pinus contorta", db = c('ncbi','eol','tropicos')) get_ids("ava avvva", db = c('ncbi','eol','tropicos')) # Pass on to other functions out <- get_ids("Pinus contorta", db = c('ncbi','eol','tropicos')) classification(out$ncbi) # Get all data back get_ids_(c("Chironomus riparius", "Pinus contorta"), db = 'nbn', rows=1:10) get_ids_(c("Chironomus riparius", "Pinus contorta"), db = c('nbn','gbif'), rows=1:10) # use curl options get_ids("Agapostemon", db = "ncbi", verbose = TRUE) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.