Learn R Programming

TreeTools (version 1.12.0)

TreeIsRooted: Is tree rooted?

Description

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

Usage

TreeIsRooted(tree)

Value

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

Arguments

tree

A phylogenetic tree of class phylo.

See Also

Other tree properties: ConsensusWithout(), MatchEdges(), NSplits(), NTip(), NodeNumbers(), PathLengths(), SplitsInBinaryTree(), TipLabels()

Examples

Run this code
TreeIsRooted(BalancedTree(6))
TreeIsRooted(UnrootTree(BalancedTree(6)))

Run the code above in your browser using DataLab