tnrs_infer_context: Infer the taxonomic context from a list of names

View source: R/tnrs.R

tnrs_infer_contextR Documentation

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, ...)

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.

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.

Examples

## Not run: 
res <- tnrs_infer_context(names=c("Stellula calliope", "Struthio camelus"))

## End(Not run)

rotl documentation built on July 9, 2023, 7:37 p.m.