Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

offspring

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)

tidytree

A Tidy Tool for Phylogenetic Tree Data Manipulation

v0.3.3
Artistic-2.0
Authors
Guangchuang Yu [aut, cre, cph] (<https://orcid.org/0000-0002-6485-8781>), Bradley Jones [ctb], Zebulun Arendsee [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.