descendent_nodes: Get all nodes (leafs and ancestors) descending from, and...

View source: R/tree_manipulation.R

descendent_nodesR Documentation

Get all nodes (leafs and ancestors) descending from, and including, a set of ids

Description

Get all nodes (leafs and ancestors) descending from, and including, a set of ids

Usage

descendent_nodes(x, ...)

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

## S3 method for class 'phylo'
descendent_nodes(x, id, type = "auto", ...)

Arguments

x

phylo object

...

Arguments passed on to descendent_nodes.phylo

id

vector of ids or names

type

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

Value

integer vector of leaf and node ids


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