parent {tidytree} | R Documentation |
parent
Description
access parent data
Usage
parent(.data, .node, ...)
## S3 method for class 'tbl_tree'
parent(.data, .node, ...)
Arguments
.data |
phylo or tbl_tree object |
.node |
node number |
... |
additional parameters |
Value
parent data
Author(s)
Guangchuang Yu
Examples
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
parent(x, 2)
[Package tidytree version 0.4.6 Index]