Description Usage Arguments Value Author(s) See Also Examples
For any given internal node of a phylogeny, the function returns a vector containing the node numbers descending from that node.
1 | descendants(phy, node, type = "t", ignore.tip = TRUE, labels)
|
phy |
an object of class |
node |
an integer giving the number of the internal node. |
type |
a character string, may be |
ignore.tip |
logical, if |
labels |
logical, determines if node labels are returned instead of node number, currently ignored unless |
A vector containing terminal node numbers or tip labels.
Christoph Heibl
1 2 3 4 5 | # generate a random tree with 12 terminal and 11 internal nodes:
tree <- rtree(12)
# get the descendants of internal node 15:
x <- descendants(tree, 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.