offspring {tidytree} | R Documentation |
offspring
Description
access offspring data
Usage
offspring(.data, .node, tiponly, self_include, ...)
## S3 method for class 'tbl_tree'
offspring(.data, .node, tiponly = FALSE, self_include = FALSE, ...)
Arguments
.data |
phylo or tbl_tree object |
.node |
node number |
tiponly |
whether only return tip nodes |
self_include |
whether include the input node, only applicable for tiponly = FALSE |
... |
additional parameters |
Value
offspring data
Author(s)
Guangchuang Yu
Examples
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
offspring(x, 4)
[Package tidytree version 0.4.6 Index]