Learn R Programming

ggphylo (version 0.1)

leaves: Returns a vector of node indices for all the leaves in the tree.

Description

Returns a vector of node indices for all the leaves in the tree.

Usage

leaves(phylo)

Arguments

phylo
input phylo object

Value

integer vector, with the node indices for all leaves