[Vegan-commits] r2516 - pkg/permute/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jun 12 19:50:23 CEST 2013


Author: gsimpson
Date: 2013-06-12 19:50:23 +0200 (Wed, 12 Jun 2013)
New Revision: 2516

Modified:
   pkg/permute/man/check.Rd
Log:
check examples work all bar one, and that is a problem with allPerms shuffling strata

Modified: pkg/permute/man/check.Rd
===================================================================
--- pkg/permute/man/check.Rd	2013-06-12 17:43:12 UTC (rev 2515)
+++ pkg/permute/man/check.Rd	2013-06-12 17:50:23 UTC (rev 2516)
@@ -183,78 +183,18 @@
 ## free permutations in levels of strata
 numPerms(7, how(within = Within(type = "free"),
                 plots = Plots(strata = fac, type = "none")))
-%% FIXME - need all these updating to new API in how...
-%% Fixed one, above, but there may still be problems with some of
-%% the code below:
-\dontrun{
 allPerms(7, how(within = Within(type = "free"),
                 plots = Plots(strata = fac)))
 ## series permutations in levels of strata
-numPerms(7, how(type = "series", strata = fac))
-allPerms(7, how(type = "series", strata = fac))
+ctrl <- how(within = Within(type = "series"), plots = Plots(strata = fac))
+numPerms(7, control = ctrl)
+allPerms(7, control = ctrl)
 
-## allPerms can work with a vector
-vec <- c(3,4,5)
-allPerms(vec)
+%% FIXME - need all these updating to new API in how...
+%% moved permuplot examples out of package until I can fix it
+%% properly
 
-## Tests for permuplot
-n <- 25
-## standard permutation designs
-permuplot(n, how(type = "free"))
-permuplot(n, how(type = "series"))
-permuplot(n, how(type = "grid", nrow = 5, ncol = 5))
-
-## restricted perms with mirroring
-permuplot(n, how(type = "series", mirror = TRUE))
-permuplot(n, how(type = "grid", nrow = 5, ncol = 5,
-                             mirror = TRUE))
-
-## perms within strata
-fac <- gl(6, 20)
-control <- how(type = "free", strata = fac)
-permuplot(120, control = control, cex = 0.8)
-control <- how(type = "series", strata = fac)
-permuplot(120, control = control, cex = 0.8)
-fac <- gl(6, 25)
-control <- how(type = "grid", strata = fac,
-                       nrow = 5, ncol = 5)
-permuplot(150, control = control, cex = 0.8)
-
-## perms within strata with mirroring
-fac <- gl(6, 20)
-control <- how(type = "series", strata = fac,
-                       mirror = TRUE)
-permuplot(120, control = control, cex = 0.8)
-fac <- gl(6, 25)
-control <- how(type = "grid", strata = fac,
-                       nrow = 5, ncol = 5, mirror = TRUE)
-permuplot(150, control = control, cex = 0.8)
-
-## same perms within strata
-fac <- gl(6, 20)
-control <- how(type = "free", strata = fac,
-                       constant = TRUE)
-permuplot(120, control = control, cex = 0.8)
-control <- how(type = "series", strata = fac,
-                       constant = TRUE)
-permuplot(120, control = control, cex = 0.8)
-fac <- gl(6, 25)
-control <- how(type = "grid", strata = fac,
-                       nrow = 5, ncol = 5, constant = TRUE)
-permuplot(150, control = control, cex = 0.8)
-
-## same perms within strata with mirroring
-fac <- gl(6, 20)
-control <- how(type = "series", strata = fac,
-                       mirror = TRUE, constant = TRUE)
-permuplot(120, control = control, cex = 0.8)
-fac <- gl(6, 25)
-control <- how(type = "grid", strata = fac,
-                       nrow = 5, ncol = 5, mirror = TRUE,
-                       constant = TRUE)
-permuplot(150, control = control, cex = 0.8)
 }
-}
 \keyword{ utilities }
 \keyword{ design }
 \keyword{ methods }



More information about the Vegan-commits mailing list