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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Aug 23 15:09:35 CEST 2011


Author: jarioksa
Date: 2011-08-23 15:09:35 +0200 (Tue, 23 Aug 2011)
New Revision: 1742

Modified:
   pkg/permute/man/nobs.Rd
Log:
cast to numeric instead of making long vector of zeros

Modified: pkg/permute/man/nobs.Rd
===================================================================
--- pkg/permute/man/nobs.Rd	2011-08-22 08:03:18 UTC (rev 1741)
+++ pkg/permute/man/nobs.Rd	2011-08-23 13:09:35 UTC (rev 1742)
@@ -37,7 +37,7 @@
 \examples{
 ## vector
 len <- sample(1:10, 1)
-v <- numeric(sample(1:100, len))
+v <- as.numeric(sample(1:100, len))
 len
 obs <- nobs(v)
 isTRUE(all.equal(len, obs))



More information about the Vegan-commits mailing list