offspring: offspring

Description Usage Arguments Value Author(s) Examples

View source: R/AllGenerics.R

Description

access offspring data

Usage

1
2
3
4
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

1
2
3
4
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
offspring(x, 4)

Example output

Attaching package: 'tidytree'

The following object is masked from 'package:stats':

    filter

# A tibble: 0 x 4
# ... with 4 variables: parent <int>, node <int>, branch.length <dbl>,
#   label <chr>

tidytree documentation built on April 2, 2020, 5:09 p.m.