Skip to contents

The Taxa in the taxonomy_graph are labelled by their common name. This function returns the label for a vector of common and/or scientific names. It is much more efficient than find_taxon() because it relies on a matching table stored in the taxonomy_graph.

Usage

get_taxon_names(graph, char)

Arguments

graph

a taxonomy_graph object, typically created with read_taxonomy().

char

a character vector of common and/or scientific names to be converted to labels. Matching is case-sensitive.

Value

a character vector of the same length as char containing taxon labels.

See also

find_taxon