child: child

Description Usage Arguments Value Author(s) Examples

View source: R/AllGenerics.R

Description

access child data

Usage

1
2
3
4
child(.data, .node, ...)

## S3 method for class 'tbl_tree'
child(.data, .node, ...)

Arguments

.data

phylo or tbl_tree object

.node

node number

...

additional parameters

Value

child data

Author(s)

Guangchuang Yu

Examples

1
2
3
4
library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
child(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.