getDescendants | R Documentation |
Returns the descendants or parent of a specified node.
getDescendants(tree, node, curr=NULL)
getParent(tree, node)
tree |
a phylogenetic tree as an object of class |
node |
an integer specifying a node number in the tree. |
curr |
the set of previously stored node numbers - used in recursive function calls. |
getDescendants
returns the set of node & tip numbers descended from node
.
getParent
returns the single parent node of a specified node number (or NULL
if node
is already the root).
The set of node and tip numbers for the nodes and tips descended from node
in a vector, or for getParent
the single node preceding node
in the tree.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Descendants
, paintSubTree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.