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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Sep 16 17:06:57 CEST 2012


Author: jarioksa
Date: 2012-09-16 17:06:56 +0200 (Sun, 16 Sep 2012)
New Revision: 2288

Modified:
   pkg/vegan/R/anova.ccabyaxis.R
   pkg/vegan/inst/ChangeLog
Log:
anova(<prc.object>, by = 'axis') seems to work after r2287

Modified: pkg/vegan/R/anova.ccabyaxis.R
===================================================================
--- pkg/vegan/R/anova.ccabyaxis.R	2012-09-16 14:13:16 UTC (rev 2287)
+++ pkg/vegan/R/anova.ccabyaxis.R	2012-09-16 15:06:56 UTC (rev 2288)
@@ -1,8 +1,6 @@
 `anova.ccabyaxis` <-
     function (object, cutoff = 1,  ...) 
 {
-    if(inherits(object, "prc"))
-        stop("anova(..., by = 'axis') cannot be used for 'prc' results")
     cutoff <- cutoff + sqrt(.Machine$double.eps)
     rnk <- object$CCA$rank
     if (!max(rnk, 0)) 

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2012-09-16 14:13:16 UTC (rev 2287)
+++ pkg/vegan/inst/ChangeLog	2012-09-16 15:06:56 UTC (rev 2288)
@@ -10,10 +10,11 @@
 	commit were: (1) anova.cca(..., by = "axis") always failed in
 	partial analysis (with conditions), (2) anova.cca(..., by =
 	"term") failed in partial models when there was no 'data='
-	argument, but the variables were in the global workspace. In
-	addition, there is one unsolved problem with search order:
-	stats function C() is found instead of variable 'C' and this gives
-	an error message  "object is not a matrix".
+	argument, but the variables were in the global workspace. The
+	first fix also seems to allow anova(<prc.object>, by = "axis")
+	that used to fail. In addition, there is one unsolved problem with
+	search order: stats function C() is found instead of variable 'C'
+	and this gives an error message "object is not a matrix".
 	
 Version 2.1-19 (closed September 16, 2012)
 



More information about the Vegan-commits mailing list