[Vegan-commits] r435 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jun 18 08:40:29 CEST 2008


Author: jarioksa
Date: 2008-06-18 08:40:29 +0200 (Wed, 18 Jun 2008)
New Revision: 435

Modified:
   pkg/man/cca.Rd
   pkg/man/varpart.Rd
Log:
cca formula has always accepted a matrix as a term

Modified: pkg/man/cca.Rd
===================================================================
--- pkg/man/cca.Rd	2008-06-18 06:29:23 UTC (rev 434)
+++ pkg/man/cca.Rd	2008-06-18 06:40:29 UTC (rev 435)
@@ -86,7 +86,9 @@
   The constraints can contain ordered or unordered factors,
   interactions among variables and functions of variables.  The defined
   \code{\link{contrasts}} are honoured in \code{\link{factor}}
-  variables.  The formula can include a special term \code{Condition}
+  variables.  The constraints can also be matrices (but not data
+  frames).
+  The formula can include a special term \code{Condition}
   for conditioning variables (``covariables'') ``partialled out'' before
   analysis.  So the following commands are equivalent: \code{cca(X, Y,
     Z)}, \code{cca(X ~ Y + Condition(Z))}, where \code{Y} and \code{Z}

Modified: pkg/man/varpart.Rd
===================================================================
--- pkg/man/varpart.Rd	2008-06-18 06:29:23 UTC (rev 434)
+++ pkg/man/varpart.Rd	2008-06-18 06:40:29 UTC (rev 435)
@@ -255,7 +255,9 @@
 mite.hel <- decostand(mite, "hel")
 mod <- varpart(mite.hel, mm1, mm2, mite.pcnm)
 # Use RDA to test fraction [a]
-rda.result <- rda(mite.hel, mm1, cbind(mm2, mite.pcnm))
+# Matrix can be an argument in formula
+rda.result <- rda(mite.hel ~ mm1 + Condition(mm2) +
+   Condition(as.matrix(mite.pcnm)))
 anova(rda.result, step=200, perm.max=200)
 
 # Four explanatory tables



More information about the Vegan-commits mailing list