[Vegan-commits] r582 - pkg/lmodel2/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Nov 20 16:41:06 CET 2008
Author: jarioksa
Date: 2008-11-20 16:41:06 +0100 (Thu, 20 Nov 2008)
New Revision: 582
Modified:
pkg/lmodel2/R/lmodel2.R
Log:
lmodel2: problem of communtication between Pierre and I
Modified: pkg/lmodel2/R/lmodel2.R
===================================================================
--- pkg/lmodel2/R/lmodel2.R 2008-11-20 15:39:01 UTC (rev 581)
+++ pkg/lmodel2/R/lmodel2.R 2008-11-20 15:41:06 UTC (rev 582)
@@ -517,7 +517,7 @@
n <- length(y)
for(i in 1:nperm) {
## Permutation, could use permuted.index2
- order = sample(n)
+ idx <- sample(n)
y.per <- y[idx]
## OLS regression
temp <- lm(y.per ~ x) # lm {stats} Fitting linear model
More information about the Vegan-commits
mailing list