Skip to contents

TreeIsRooted() is a fast alternative to ape::is.rooted().

Usage

TreeIsRooted(tree)

Arguments

tree

A phylogenetic tree of class phylo.

Value

TreeIsRooted() returns a logical specifying whether a root node is resolved.

See also

Examples

TreeIsRooted(BalancedTree(6))
#> [1] TRUE
TreeIsRooted(UnrootTree(BalancedTree(6)))
#> [1] FALSE