Learn R Programming

tidytree (version 0.2.1)

offspring: offspring

Description

access offspring data

Usage

offspring(.data, .node, ...)

# S3 method for tbl_tree offspring(.data, .node, ...)

Arguments

.data

phylo or tbl_tree object

.node

node number

...

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