This is less thorough than get_open_tree_species(), but much faster. It uses the fact that something has just two names (genus and species) to assume that something is a single species; if it has more than two names, it is assumed to be a subspecies so it goes up one level in the hierarchy. It will return the subspecies and the species.
get_all_descendant_species(taxon_name, ott_id)
A list of unique OTT names and OTT ids of species within the provided taxon.
A character vector providing an inclusive taxonomic name.
A numeric vector providig an Open Tree Taxonomic id number for
a taxonomic name. If provided, taxon_name
is ignored.
Used in the context of OTT to detect invalid taxon names.