classification_paths_from_taxonomy: Gets classification paths for a vector of taxa

Description Usage Arguments Value

View source: R/tree_from_taxonomy.R

Description

This uses the taxize package's wrapper of the Global Names Resolver to get taxonomic paths for the vector of taxa you pass in. Sources is a vector of source labels in order (though it works best if everything uses the same taxonomy, so we recommend doing just one source). You can see options by doing taxize::gnr_datasources(). Our default is Catalogue of Life

Usage

1
classification_paths_from_taxonomy(taxa, sources = "Catalogue of Life")

Arguments

taxa

Vector of taxon names

sources

Vector of names of preferred sources; see taxize::gnr_datasources()

Value

A list with resolved taxa (a tibble, from taxize::gnr_resolve) and a vector of taxa not resolved


phylotastic/datelife documentation built on Jan. 14, 2019, 9:56 p.m.