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

taxonomy_mrca

Taxonomic MRCA


Description

Taxonomic Least Inclusive Common Ancestor (MRCA)

Usage

taxonomy_mrca(ott_ids = NULL, ...)

## S3 method for class 'taxon_mrca'
tax_rank(tax, ...)

## S3 method for class 'taxon_mrca'
tax_name(tax, ...)

## S3 method for class 'taxon_mrca'
ott_id(tax, ...)

## S3 method for class 'taxon_mrca'
unique_name(tax, ...)

## S3 method for class 'taxon_mrca'
tax_sources(tax, ...)

## S3 method for class 'taxon_mrca'
flags(tax, ...)

## S3 method for class 'taxon_mrca'
is_suppressed(tax, ...)

Arguments

ott_ids

a vector of ott ids for the taxa whose MRCA is to be found (numeric).

...

additional arguments to customize the API request (see rotl package documentation).

tax

an object generated by the taxonomy_mrca function

Details

Given a set of OTT ids, get the taxon that is the most recent common ancestor (the MRCA) of all the identified taxa.

Value

  • taxonomy_mrca returns a list about the taxonomic information relating to the MRCA for the ott_ids provided.

  • tax_rank returns a character vector of the taxonomic rank for the MRCA.

  • tax_name returns a character vector the Open Tree Taxonomy name for the MRCA.

  • ott_id returns a numeric vector of the ott id for the MRCA.

Examples

## Not run: 
req <- taxonomy_mrca(ott_ids=c(515698,590452,643717))
tax_rank(req)
tax_name(req)
ott_id(req)

## End(Not run)

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.