get_root: Get the root of a tree

View source: R/tree_manipulation.R

get_rootR Documentation

Get the root of a tree

Description

There should normally be only one, but if there are more, this function will find all of them.

Usage

get_root(x)

## S3 method for class 'Strata'
get_root(x)

## S3 method for class 'phylo'
get_root(x)

Arguments

x

phylo object

...

Arguments passed to is_root

Value

index of the root node (or nodes if there are more than one)


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