getNextDescendants: Find the descendants of a node

getNextDescendantsR Documentation

Find the descendants of a node

Description

Utility functions to find the descendants of a node

Usage

getNextDescendants(phy, x)

get_descendant_tips_for_each_node(phy)

get_descendant_nodes_for_each_node(phy)

Arguments

phy

a phylo-class object from the ape package

x

the index of the focal node

Value

getNextDescendants returns the indices of the immediate descendants. If a tip is supplied, 'NA“ will be returned.

get_descendant_tips_for_each_node and get_descendant_nodes_for_each_node returns a list of descendants.

The list is ordered so that the index matches the tip/node index in the phylo-class object.

See Also

[getRoot][getAncestor][findSisters][getConnected]


wu-lab-uva/RasperGade documentation built on June 24, 2022, 2:47 p.m.