descendents: Get all leafs descending from a set of ids

View source: R/tree_manipulation.R

descendentsR Documentation

Get all leafs descending from a set of ids

Description

This is a simple wrapper around descendent_nodes.

Usage

descendents(x, ...)

## S3 method for class 'Strata'
descendents(x, ...)

## S3 method for class 'phylo'
descendents(x, id, ...)

Arguments

x

phylo object

...

Arguments sent to descendent_nodes

id

vector of ids or names

Value

integer vector of leaf ids


arendsee/phylostratr documentation built on Dec. 23, 2024, 1:31 p.m.