get_ott_clade: Get the Open Tree of Life Taxonomic identifiers (OTT ids) and...

View source: R/opentree_taxonomy.R

get_ott_cladeR Documentation

Get the Open Tree of Life Taxonomic identifiers (OTT ids) and name of one or several given taxonomic ranks from one or more input taxa.

Description

Get the Open Tree of Life Taxonomic identifiers (OTT ids) and name of one or several given taxonomic ranks from one or more input taxa.

Usage

get_ott_clade(input = NULL, ott_ids = NULL, ott_rank = "family")

Arguments

input

Optional. A character vector of names or a datelifeQuery object.

ott_ids

If not NULL, it takes this argument and ignores input. A numeric vector of ott ids obtained with rotl::taxonomy_taxon_info() or rotl::tnrs_match_names() or tnrs_match().

ott_rank

A character vector with the ranks you wanna get lineage children from.

Value

A list of named numeric vectors with OTT ids from input and all requested ranks.


phylotastic/datelife documentation built on Jan. 17, 2024, 11:10 p.m.