node.descendents {motmot} | R Documentation |
Identify nodes and tips descended from a node
Description
Obtains a vector of the tips and nodes subtending from a node in a phylogeny.
Usage
node.descendents(x, phy, tip.labels = FALSE)
Arguments
x |
A positive integer |
phy |
An object of class |
tip.labels |
Logical - output tip.labels? |
Details
This function is stolen from the clade.members function in the CAIC package but returns both node and tip id's.
Value
Returns a vector of node and tip ids descended from the tip(s) "x". If tip.labels=TRUE then returns a list of node ids and tip labels.
Note
as.rateMatrix
calls the CAIC function vcv.array
multiple times and this can be slow for large phylogenies (though faster than using the ape equivalent vcv.phylo
).
Author(s)
Gavin Thomas, David Orme
[Package motmot version 2.1.3 Index]