node.descendents: Identify nodes and tips descended from a node

Description Usage Arguments Details Value Note Author(s)

Description

Obtains a vector of the tips and nodes subtending from a node in a phylogeny.

Usage

1
node.descendents(x, phy, tip.labels = FALSE)

Arguments

x

A positive integer

phy

An object of class phylo (see ape).

tip.labels

Logical - output tip.labels?

Details

This function is stolen from the clade.members function in the CAIC package but returns both node and tip id's.

Value

Returns a vector of node and tip ids descended from the tip(s) "x". If tip.labels=TRUE then returns a list of node ids and tip labels.

Note

as.rateMatrix calls the CAIC function vcv.array multiple times and this can be slow for large phylogenies (though faster than using the ape equivalent vcv.phylo).

Author(s)

Gavin Thomas, David Orme


PuttickMacroevolution/motmot documentation built on June 5, 2020, 7 p.m.