taxize (version 0.1.5)

gnr_resolve: Resolve names using Global Names Resolver.

Description

Uses the Global Names Index, see http://gni.globalnames.org/.

Usage

gnr_resolve(names, data_source_ids = NULL,
    resolve_once = FALSE, with_context = FALSE,
    stripauthority = FALSE, highestscore = TRUE,
    http = "get")

Arguments

names
character; taxonomic names to be resolved.
data_source_ids
character; IDs to specify what data source is searched. See gnr_datasources.
resolve_once
logical; Find the first available match instead of matches across all data sources with all possible renderings of a name. When TRUE, response is rapid but incomplete.
with_context
logical; Reduce the likelihood of matches to taxonomic homonyms. When TRUE a common taxonomic context is calculated for all supplied names from matches in data sources that have classification tree paths. Names out of determined conte
stripauthority
logical; If TRUE, gives back names with taxonomic authorities. If FALSE, strips author names.
highestscore
logical; Return those names with the highest score for each searched name?
http
The HTTP method to use, one of "get" or "post". Default="get". Use http="post" with large queries.

Value

  • A data.frame.

See Also

gnr_datasources

Examples

Run this code
gnr_resolve(names = c("Helianthus annuus", "Homo sapiens"))
gnr_resolve(names = c("Asteraceae", "Plantae"))

# Using data source 12 (Encyclopedia of Life)
sources<- gnr_datasources()
sources
eol <- sources$id[sources$title == 'EOL']
gnr_resolve(names=c("Helianthos annuus","Homo sapians"), data_source_ids=eol)

Run the code above in your browser using DataLab