clean_phyid: Convert node/tip name to id, check size

View source: R/tree_manipulation.R

clean_phyidR Documentation

Convert node/tip name to id, check size

Description

Convert node/tip name to id, check size

Usage

clean_phyid(x, id, len = NULL, type = "auto")

Arguments

x

phylo or Strata object

id

integer id or a node label

len

require id to be of this length (NULL for no requirement)

type

['auto', 'index', or 'name'], is 'index' then the id is expected to be an index in the phylo object, if 'name' it is expected to be a node or tip name, if 'auto' the value is assumed to be a name if it is a character string.

Value

on success, return a valid integrel id


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.