[Vegan-commits] r910 - pkg/vegan/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Aug 9 07:59:29 CEST 2009


Author: jarioksa
Date: 2009-08-09 07:59:29 +0200 (Sun, 09 Aug 2009)
New Revision: 910

Modified:
   pkg/vegan/R/metaMDS.R
Log:
wrong variable name in metaMDS and square matrix of dissimilarities fail

Modified: pkg/vegan/R/metaMDS.R
===================================================================
--- pkg/vegan/R/metaMDS.R	2009-08-09 05:55:14 UTC (rev 909)
+++ pkg/vegan/R/metaMDS.R	2009-08-09 05:59:29 UTC (rev 910)
@@ -11,7 +11,7 @@
         wascores <- FALSE
     } else if (length(dim(comm) == 2) && ncol(comm) == nrow(comm) &&
                 all(comm == t(comm))) {
-        dis <- as.dist(m)
+        dis <- as.dist(comm)
         attr(dis, "method") <- "user supplied"
         wascores <- FALSE
     } else {



More information about the Vegan-commits mailing list