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