check_ott_input {OpenTreeChronograms}R 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.


[Package OpenTreeChronograms version 2022.1.28 Index]