occ_names {spocc} | R Documentation |
Search for species names across many data sources.
Description
Search for species names across many data sources.
Usage
occ_names(
query = NULL,
from = "gbif",
limit = 100,
rank = "species",
callopts = list(),
gbifopts = list()
)
Arguments
query |
(character) One to many names. Either a scientific name or a common name. Only scientific names supported right now. |
from |
(character) Data source to get data from, only gbif |
limit |
(numeric) Number of records to return. This is passed across all sources. To specify different limits for each source, use the options for each source (gbifopts). See Details for more. |
rank |
(character) Taxonomic rank to limit search space. Used in GBIF. |
callopts |
Options passed on to |
gbifopts |
(list) List of named options to pass on to
|
Details
Not all 7 data sources available from the occ()
function are
available here, as not all of those sources have functionality to search
for names.
We strongly encourage you to use the taxize
package if you want to
search for taxonomic or common names, convert common to scientific names,
etc. That package was built exactly for that purpose, and we only provide
a bit of name searching here in this function.
See Also
Other queries:
occ()
,
occ_names_options()
,
occ_options()
,
spocc_objects
Examples
## Not run:
# Single data sources
## gbif
(res <- occ_names(query = 'Accipiter striatus', from = 'gbif'))
head(res$gbif$data[[1]])
## End(Not run)