children: Get the immediate children of a node

View source: R/tree_manipulation.R

childrenR Documentation

Get the immediate children of a node

Description

Get the immediate children of a node

Usage

children(x, ...)

## S3 method for class 'Strata'
children(x, id, type = "name", ...)

Arguments

x

phylo object

...

Arguments passed on to children.phylo

id

vector of ids or names

type

id type: ['name', 'index', 'auto']

Value

vector of children, (integer(0) if there are no children)


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.