check_ott_input: Check input for other functions

View source: R/opentree_taxonomy.R

check_ott_inputR Documentation

Check input for other functions

Description

check_ott_input is currently used in functions get_ott_clade(), get_ott_children().

Usage

check_ott_input(input = NULL, ott_ids = NULL)

Arguments

input

Optional. A character vector of names.

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().

Details

By default, it uses the ott_id argument if it is not NULL.

Value

A named numeric vector of valid Open Tree Taxonomy (OTT) ids.


OpenTreeChronograms documentation built on June 22, 2022, 9:08 a.m.