Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tax_lineage

Lineage of a taxon


Description

Extract the lineage information (higher taxonomy) from an object returned by taxonomy_taxon_info.

Usage

tax_lineage(tax, ...)

## S3 method for class 'taxon_info'
tax_lineage(tax, ...)

Arguments

tax

an object created by taxonomy_taxon_info using the argument include_lineage=TRUE.

...

additional arguments (currently unused).

Details

The object passed to this function must have been created using the argument include_lineage=TRUE.

Value

A list with one slot per taxon that contains a data frame with 3 columns: the taxonomy rank, the name, and unique name for all taxa included in the lineage of the taxon up to the root of the tree.


rotl

Interface to the 'Open Tree of Life' API

v3.0.11
BSD_2_clause + file LICENSE
Authors
Francois Michonneau [aut, cre] (<https://orcid.org/0000-0002-9092-966X>), Joseph Brown [aut] (<https://orcid.org/0000-0002-3835-8062>), David Winter [aut] (<https://orcid.org/0000-0002-6165-0029>), Scott Chamberlain [rev] (<https://orcid.org/0000-0003-1444-9135>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.