Learn R Programming

ggphylo (version 0.1)

tree.is.leaf: Determine if the given node is a leaf or an internal node.

Description

Determine if the given node is a leaf or an internal node.

Usage

"is.leaf" (phylo, node)

Arguments

phylo,
input phylo object
node,
integer index of the desired node to test

Value

boolean, TRUE if the given node is a leaf, FALSE if it is an internal node