Learn R Programming

rotl (version 3.1.0)

tnrs_infer_context: Infer the taxonomic context from a list of names

Description

Return a taxonomic context given a list of taxonomic names

Usage

tnrs_infer_context(names = NULL, ...)

Value

A list including the context name, the context ott id and possibly the names in the query that have an ambiguous taxonomic meaning in the query.

Arguments

names

Vector of taxon names.

...

additional arguments to customize the API request (see rotl package documentation).

Details

Find the least inclusive taxonomic context that includes all the unambiguous names in the input set. Unambiguous names are names with exact matches to non-homonym taxa. Ambiguous names (those without exact matches to non-homonym taxa) are indicated in results.

Examples

Run this code
if (FALSE) {
res <- tnrs_infer_context(names=c("Stellula calliope", "Struthio camelus"))
}

Run the code above in your browser using DataLab