node.leaves {geiger}R Documentation

Returns all descendents of a given node in your tree

Description

Given a node number (as stored in the phylo object's edge matrix), this function returns a list of all descendents of that node.

Usage

node.leaves(phy, node)

Arguments

phy An object of class phylo
node Node number

Value

A list of tip names

Author(s)

Luke J. Harmon

Examples

data(geospiza)
attach(geospiza)

node.leaves(geospiza.tree, 18)

[Package geiger version 1.2-14 Index]