[Vegan-commits] r904 - in pkg/vegan: R inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jul 22 22:57:32 CEST 2009


Author: jarioksa
Date: 2009-07-22 22:57:32 +0200 (Wed, 22 Jul 2009)
New Revision: 904

Modified:
   pkg/vegan/R/summary.cca.R
   pkg/vegan/inst/ChangeLog
Log:
summary.cca: r881 broke cases with no factors and their centroids

Modified: pkg/vegan/R/summary.cca.R
===================================================================
--- pkg/vegan/R/summary.cca.R	2009-07-20 16:36:59 UTC (rev 903)
+++ pkg/vegan/R/summary.cca.R	2009-07-22 20:57:32 UTC (rev 904)
@@ -20,8 +20,10 @@
     }
     if (length(display) > 0) {
         for (i in 1:length(summ)) {
-            rownames(summ[[i]]) <- rownames(summ[[i]], do.NULL = FALSE,
-                                            prefix = substr(names(summ)[i], 1, 3))
+            if (is.matrix(summ[[i]]))
+                rownames(summ[[i]]) <-
+                    rownames(summ[[i]], do.NULL = FALSE,
+                             prefix = substr(names(summ)[i], 1, 3))
         }
     }
     summ$call <- object$call

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2009-07-20 16:36:59 UTC (rev 903)
+++ pkg/vegan/inst/ChangeLog	2009-07-22 20:57:32 UTC (rev 904)
@@ -4,8 +4,11 @@
 
 Version 1.16-22 (opened July 15, 2009)
 
-    * indpower: new function to calculate indicator power for a species
-    (Halme et al. 2009, Cons. Biol. 23: 1008-1016)
+	* summary.cca: fix in 1.16-20 failed if all variables were
+	continuous and there were no centroids of factor levels.
+	
+	* indpower: new function to calculate indicator power for a
+	species (Halme et al. 2009, Cons. Biol. 23: 1008-1016)
 
 	* mantel.correlog, print.mantel.correlog & plot.mantel.correlog: 
 	new functions to construct multivariate mantel correlograms --- 



More information about the Vegan-commits mailing list