| NodeNumbers {TreeTools} | R Documentation |
Numeric index of each node in a tree
NodeNumbers() returns a sequence corresponding to the nodes in a tree
Description
Numeric index of each node in a tree
NodeNumbers() returns a sequence corresponding to the nodes in a tree
Usage
NodeNumbers(tree, tips = FALSE)
Arguments
tree |
A tree of class |
tips |
Logical specifying whether to also include the indices of leaves. |
Value
NodeNumbers() returns an integer vector corresponding to the
indices of nodes within a tree.
Author(s)
Martin R. Smith (martin.smith@durham.ac.uk)
See Also
Other tree properties:
ConsensusWithout(),
MatchEdges(),
NSplits(),
NTip(),
PathLengths(),
SplitsInBinaryTree(),
TipLabels(),
TreeIsRooted()
Other tree navigation:
AncestorEdge(),
CladeSizes(),
DescendantEdges(),
EdgeAncestry(),
EdgeDistances(),
ListAncestors(),
MRCA(),
MatchEdges(),
NDescendants(),
NodeDepth(),
NodeOrder(),
RootNode()
[Package TreeTools version 1.12.0 Index]