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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Aug 24 09:59:26 CEST 2011


Author: gsimpson
Date: 2011-08-24 09:59:26 +0200 (Wed, 24 Aug 2011)
New Revision: 1749

Modified:
   pkg/permute/man/shuffleSet.Rd
Log:
make example a bit clearer on intention with L markup for integer case

Modified: pkg/permute/man/shuffleSet.Rd
===================================================================
--- pkg/permute/man/shuffleSet.Rd	2011-08-24 05:34:42 UTC (rev 1748)
+++ pkg/permute/man/shuffleSet.Rd	2011-08-24 07:59:26 UTC (rev 1749)
@@ -61,6 +61,11 @@
 CTRL <- permControl(within = Within(type = "series", mirror = TRUE))
 shuffleSet(10, 10, CTRL)
 
+## Permuting strata
+grp <- gl(4,5) ## 4 groups of 5 observations
+CTRL <- permControl(strata = grp, within = Within(type = "none"),
+                                  blocks = Blocks(type = "free"))
+shuffleSet(20, 10, control = CTRL)
 }
 % Add one or more standard keywords, see file 'KEYWORDS' in the
 % R documentation directory.



More information about the Vegan-commits mailing list