Skip to contents

This function matches the tip labels of a phylogenetic tree (Taxon names or OTT id's) with corresponding GBIF id's.

Usage

taxonmatch(tree)

Arguments

tree

An object of class 'phylo', a phylogenetic tree in Newick format that was parsed by ape::read_tree()

Value

A dataframe with columns ott_id and gbif_id

Examples

if (FALSE) ex_data <- retrieve_example_data()
# This can take a while!
mtable <- taxonmatch(ex_data$tree) # \dontrun{}
#> Error: object 'ex_data' not found