ancestor | R Documentation |
access ancestor data
ancestor(.data, .node, ...)
## S3 method for class 'tbl_tree'
ancestor(.data, .node, ...)
.data |
phylo or tbl_tree object |
.node |
node number |
... |
additional parameters |
ancestor data
Guangchuang Yu
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
ancestor(x, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.