Learn R Programming

OpenTreeChronograms (version 2022.1.28)

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

Value

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

Details

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