sort.multiPhylo: Sort a list of phylogenetic trees

View source: R/sort.R

sort.multiPhyloR Documentation

Sort a list of phylogenetic trees

Description

Trees are sorted by their mixed base representation, treating their leaves in the order of their labels (i.e. alphabetically, if leaves are labelled with text).

Usage

## S3 method for class 'multiPhylo'
sort(x, decreasing = FALSE, na.last = NA, ...)

## S3 method for class 'phylo'
e1 == e2

## S3 method for class 'phylo'
e1 < e2

## S3 method for class 'phylo'
e1 > e2

## S3 method for class 'MixedBase'
e1 == e2

## S3 method for class 'MixedBase'
e1 < e2

## S3 method for class 'MixedBase'
e1 > e2

Arguments

x, decreasing, na.last, ...

As in sort().

e1, e2

Objects to be compared.

Author(s)

Martin R. Smith (martin.smith@durham.ac.uk)

Examples

sort(as.phylo(5:0, 7))

TreeTools documentation built on Sept. 11, 2024, 8:27 p.m.