Learn R Programming

phytools (version 0.3-72.1)

multiRF: Computes Robinson-Foulds distance between a set of trees

Description

Computes the Robinson-Foulds distance between a set of trees in an object of class "multiPhylo". If trees contains a large number of phylogenies (say 100 or 1,000) this will be much faster than calling RF.dist in the phangorn package for all pairwise comparisons because it avoids repeating some internal calculations. Nonetheless for large numbers multiRF is slow, and will use lots of memory.

Usage

multiRF(trees)

Arguments

trees
object of class "multiPhylo" consisting of two or more fully bifurcating, unrooted trees. If trees are rooted, they will be unrooted.

Value

  • A distance matrix.

Details

Computes the Robinson-Foulds distance between all phylogenies in an object of class "multiPhylo". Uses prop.part internally for most of the heavy lifting.