descendants: Get all the descendants of a given node in a tree.

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Get all the descendants of a given node in a tree.

Usage

1
descendants(phy, a, keep_node = FALSE)

Arguments

phy

A phylo object that specifies the tree.

a

The number of a node in phy.

keep_node

If FALSE, do not include a in the result.

Value

A vector of nodes (specified by number) that are descendants of a. Includes internal and tip nodes.


caseywdunn/hutan documentation built on June 12, 2020, 3:12 a.m.