[Phylobase-commits] r762 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 23 01:22:03 CET 2010


Author: francois
Date: 2010-03-23 01:22:03 +0100 (Tue, 23 Mar 2010)
New Revision: 762

Modified:
   pkg/R/methods-phylo4.R
Log:
fix bug in hasDuplicatedLabels

Modified: pkg/R/methods-phylo4.R
===================================================================
--- pkg/R/methods-phylo4.R	2010-03-23 00:15:23 UTC (rev 761)
+++ pkg/R/methods-phylo4.R	2010-03-23 00:22:03 UTC (rev 762)
@@ -310,7 +310,7 @@
           type <- "all"
       }
       type <- match.arg(type)
-      any(duplicated(labels(x, type)))
+      any(duplicated(na.omit(labels(x, type))))
 })
 
 



More information about the Phylobase-commits mailing list