[Vegan-commits] r1806 - pkg/permute/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 8 11:54:36 CEST 2011


Author: gsimpson
Date: 2011-09-08 11:54:36 +0200 (Thu, 08 Sep 2011)
New Revision: 1806

Modified:
   pkg/permute/inst/doc/permutations.Rnw
Log:
silly typo in vignette code comparing shuffle with sample

Modified: pkg/permute/inst/doc/permutations.Rnw
===================================================================
--- pkg/permute/inst/doc/permutations.Rnw	2011-09-08 09:39:48 UTC (rev 1805)
+++ pkg/permute/inst/doc/permutations.Rnw	2011-09-08 09:54:36 UTC (rev 1806)
@@ -157,10 +157,10 @@
 <<>>=
 str(permControl())
 @
-The defaults describe a random permutation design where all objects are freely exchangeable. Using these defaults, \code{shuffle(1:10)} amounts to \code{sample(1:10, 10, replace = FALSE)}:
+The defaults describe a random permutation design where all objects are freely exchangeable. Using these defaults, \code{shuffle(10)} amounts to \code{sample(1:10, 10, replace = FALSE)}:
 <<>>=
 set.seed(2)
-(r1 <- shuffle(1:10))
+(r1 <- shuffle(10))
 set.seed(2)
 (r2 <- sample(1:10, 10, replace = FALSE))
 all.equal(r1, r2)



More information about the Vegan-commits mailing list