Learn R Programming

taxize (version 0.0.5)

gnr_resolve: Resolve names using Global Names Resolver.

Description

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

Usage

gnr_resolve(names, data_source_ids = NULL,
    returndf = FALSE,
    url = "http://resolver.globalnames.org/name_resolvers")

Arguments

names
Quoted taxonomic names to be resolved in a vector.
data_source_ids
Supply data source IDs to specify what data source is searched. See example below.
returndf
Return data.frame or list (logical; default data.frame).
url
Base url for the API; leave as is.

Value

  • json or xml output, your choice

Examples

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

# Using data source 12 (Encyclopedia of Life)
gnr_resolve(names = c("Helianthus annuus", "Homo sapiens"), data_source_ids="12", returndf = TRUE)

Run the code above in your browser using DataLab