View source: R/tree_properties.R
| RootNode | R Documentation |
RootNode() identifies the root node of a (rooted or unrooted) phylogenetic
tree.
Unrooted trees are represented internally by a rooted tree with a polytomy
at the root.
RootNode(x)
x |
A tree of class |
RootNode() returns an integer denoting the root node for each tree.
Badly conformed trees trigger an error.
Martin R. Smith (martin.smith@durham.ac.uk)
Test whether a tree is rooted: TreeIsRooted()
phangorn::getRoot()
Other tree navigation:
AncestorEdge(),
CladeSizes(),
DescendantEdges(),
EdgeAncestry(),
EdgeDistances(),
ListAncestors(),
MRCA(),
MatchEdges(),
NDescendants(),
NodeDepth(),
NodeNumbers(),
NodeOrder()
RootNode(BalancedTree(8))
RootNode(UnrootTree(BalancedTree(8)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.