get_ids | R Documentation |
A drop-in replacement for [taxize::get_ids()]
get_ids(
names,
provider = getOption("taxadb_default_provider", "itis"),
format = c("prefix", "bare", "uri"),
version = latest_version(),
taxadb_db = td_connect(),
ignore_case = FALSE,
warn = TRUE,
db = NULL,
...
)
names |
a list of scientific names (which may include higher-order ranks in most authorities). |
provider |
abbreviation code for the provider. See details. |
format |
Format for the returned identifier, one of
|
version |
Which version of the taxadb provider database should we use?
defaults to latest. see |
taxadb_db |
Connection to from |
ignore_case |
should we ignore case (capitalization) in matching names?
default is |
warn |
should we display warnings on NAs resulting from multiply-resolved matches?
(Unlike unmatched names, these NAs can usually be resolved manually via |
db |
previous name for |
... |
additional arguments (currently ignored) |
Note that some taxize authorities: nbn
, tropicos
, and eol
,
are not recognized by taxadb and will throw an error here. Meanwhile,
taxadb recognizes several authorities not known to [taxize::get_ids()]
.
Both include itis
, ncbi
, col
, and gbif
.
Like all taxadb functions, this function will run
fastest if a local copy of the provider is installed in advance
using [td_create()]
.
a vector of IDs, of the same length as the input names Any
unmatched names or multiply-matched names will return as NAs.
To resolve multi-matched names, use [filter_name()]
instead to return
a table with a separate row for each separate match of the input name.
filter_name
Other get:
get_names()
get_ids("Midas bicolor")
get_ids(c("Midas bicolor", "Homo sapiens"), format = "prefix")
get_ids("Midas bicolor", format = "uri")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.