Learn R Programming

adephylo (version 1.1-16)

listTips: List tips descendings from all nodes of a tree

Description

The function listTips lists the tips descending from each node of a tree. The tree can be of class phylo, phylo4 or phylo4d.

Usage

listTips(x)

Value

A list whose components are vectors of named tips for a given node.

Arguments

x

A tree of class phylo, phylo4 or phylo4d.

Author

Thibaut Jombart tjombart@imperial.ac.uk

See Also

listDD which lists the direct descendants for each node.

treePart which defines partitions of tips according to the tree topology.

Examples

Run this code

if(require(ape) & require(phylobase)){
## make a tree
x <- as(rtree(20),"phylo4")
plot(x,show.node=TRUE)
listTips(x)
}

Run the code above in your browser using DataLab