is_root: Vectorized tree root finder

View source: R/tree_manipulation.R

is_rootR Documentation

Vectorized tree root finder

Description

Vectorized tree root finder

Usage

is_root(x, ...)

## S3 method for class 'Strata'
is_root(x, ...)

## S3 method for class 'phylo'
is_root(x, id = 1:tree_size(x), type = "auto", ...)

Arguments

x

phylo object

...

Arguments passed on to is_root.phylo

id

vector of ids or names

type

id type: ['name', 'index', 'auto']

Value

logical vector


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