get_ott_lineage: gets the ott id and name of all lineages from one or more...

Description Usage Arguments Value Examples

View source: R/opentree_taxonomy.R View source: R/opentree_taxonomy.R

Description

gets the ott id and name of all lineages from one or more input taxa

Usage

1
get_ott_lineage(input, ott_id = NULL)

Arguments

input

A character vector of names

ott_id

A numeric vector of ott ids obtained with rotl::taxonomy_taxon_info or rolt::tnrs_match_names or datelife::tnrs_match

Value

a list of named numeric vectors of ott ids from input and all the clades it belongs to.

Examples

1
2
taxa <- c("Homo", "Bacillus anthracis", "Apis", "Salvia")
lin <- get_ott_lineage(taxa)

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