getSisters | R Documentation |
Computes the sister taxon or node.
getSisters(tree, node, mode=c("number","label"))
tree |
object of class |
node |
a node number, tip number, node label, or tip label. |
mode |
an optional string indicating whether to return the node or tip number(s) or the node or tip label(s), if applicable. |
This function takes a tree and node or tip number of label and returns the number or label of the sister or sisters to that node or tip.
If mode="number"
this function returns an integer or vector containing the node number of numbers of the sister node or tip. If mode="label"
then this function returns a list containing up to two vectors: one for the node numbers of labels of sister nodes (if applicable); and the other containing the tip labels of the sister tips.
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.
getDescendants
, Siblings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.