tidytree (version 0.3.3)

offspring: offspring

Description

access offspring data

Usage

offspring(.data, .node, tiponly, self_include, ...)

# S3 method for 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

Examples

Run this code
# NOT RUN {
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
offspring(x, 4)
# }

Run the code above in your browser using DataLab