offspring | R Documentation |
access offspring data
offspring(.data, .node, tiponly, self_include, ...)
## S3 method for class 'tbl_tree'
offspring(.data, .node, tiponly = FALSE, self_include = FALSE, ...)
.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 |
offspring data
Guangchuang Yu
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
offspring(x, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.