X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=R%2Fdist.topo.R;h=d94866adfe1c65f9c46946567573196b6a4e51a9;hb=bfaeca35ec130110327a3bb7a1f0fe3b66076a95;hp=fa9e869d7b0eb7b9d4925bd2538f640ea2a8a03f;hpb=0e3fb192a3bd90922b5a41bae0a26505dc78550e;p=ape.git diff --git a/R/dist.topo.R b/R/dist.topo.R index fa9e869..d94866a 100644 --- a/R/dist.topo.R +++ b/R/dist.topo.R @@ -1,9 +1,9 @@ -## dist.topo.R (2010-11-18) +## dist.topo.R (2011-02-21) ## Topological Distances, Tree Bipartitions, ## Consensus Trees, and Bootstrapping Phylogenies -## Copyright 2005-2010 Emmanuel Paradis +## Copyright 2005-2011 Emmanuel Paradis ## This file is part of the R-package `ape'. ## See the file ../COPYING for licensing issues. @@ -104,7 +104,7 @@ prop.part <- function(..., check.labels = TRUE) ## ntree <- length(obj) if (ntree == 1) check.labels <- FALSE - if (check.labels) .compressTipLabel(obj) # no need to store cause uncompress later + if (check.labels) obj <- .compressTipLabel(obj) # fix by Klaus Schliep (2011-02-21) for (i in 1:ntree) storage.mode(obj[[i]]$Nnode) <- "integer" ## ## The 1st must have tip labels