From: paradis Date: Fri, 18 Jul 2008 13:03:53 +0000 (+0000) Subject: fixed prop.part() X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=631de80fc64dd4b62c967f3d08399df612317f6e;p=ape.git fixed prop.part() git-svn-id: https://svn.mpl.ird.fr/ape/dev/ape@45 6e262413-ae40-0410-9e79-b911bd7a66b7 --- diff --git a/Changes b/Changes index cfea531..2fe5b8d 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,12 @@ NEW FEATURES 'pairwise.deletion'. +BUG FIXES + + o prop.part() failed with a single tree with the default option + 'check.labels = TRUE'. + + CHANGES IN APE VERSION 2.2-1 diff --git a/R/dist.topo.R b/R/dist.topo.R index 88110c5..b57fb0a 100644 --- a/R/dist.topo.R +++ b/R/dist.topo.R @@ -1,4 +1,4 @@ -## dist.topo.R (2008-06-28) +## dist.topo.R (2008-07-18) ## Topological Distances, Tree Bipartitions, ## Consensus Trees, and Bootstrapping Phylogenies @@ -87,6 +87,7 @@ prop.part <- function(..., check.labels = TRUE) ## class(obj) <- NULL # needed? ## ntree <- length(obj) + if (ntree == 1) check.labels <- FALSE if (check.labels) obj <- .compressTipLabel(obj) for (i in 1:ntree) storage.mode(obj[[i]]$Nnode) <- "integer" ##