treedist computes different tree distance methods and RF.dist the Robinson-Foulds or symmetric distance.treedist(tree1, tree2, check.labels = TRUE)
RF.dist(tree1, tree2=NULL, check.labels=TRUE, rooted=FALSE)
KF.dist(tree1, tree2=NULL, check.labels=TRUE, rooted=FALSE)
path.dist(tree1, tree2=NULL, check.labels=TRUE, use.weight=FALSE)phylo)
  or vector of trees (an object of class multiPhylo). See detailstreedist returns a vector containing the following tree distance methodsmultiPhylo object is given. 
KF.dist return the branch score distance (Kuhner & Felsenstein 1994). 
path.dist computes the path difference metric as described in Steel and Penny 1993).For large number of trees the distance functions will use a lot of memory!
Kuhner, M. K. and Felsenstein, J. (1994) A simulation comparison of phylogeny algorithms under equal and unequal evolutionary rates, Molecular Biology and Evolution, 11(3), 459--468
D.F. Robinson and L.R. Foulds (1981) Comparison of phylogenetic trees, Mathematical Biosciences, 53(1), 131--147
dist.topotree1 <- rtree(100, rooted=FALSE)
tree2 <- rSPR(tree1, 3)
RF.dist(tree1, tree2)
treedist(tree1, tree2)Run the code above in your browser using DataLab