Learn R Programming

geiger (version 1.2-13)

node.leaves: 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

Examples

Run this code
data(geospiza)
attach(geospiza)

node.leaves(geospiza.tree, 18)

Run the code above in your browser using DataLab