Learn R Programming

MSCquartets (version 3.1)

taxonNames: Get all taxon names from a collection of trees

Description

Create a vector of all taxon names appearing on a collection of trees, with no repeats.

Usage

taxonNames(trees)

Value

a vector of unique names of taxa appearing on the trees

Arguments

trees

a multiPhylo object containing a collection of trees

Examples

Run this code
gtrees=read.tree(file=system.file("extdata","dataGeneTreeSample",package="MSCquartets"))
tnames=taxonNames(gtrees)

Run the code above in your browser using DataLab