[Vegan-commits] r1185 - in pkg/vegan: R inst
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed May 5 11:01:54 CEST 2010
Author: jarioksa
Date: 2010-05-05 11:01:53 +0200 (Wed, 05 May 2010)
New Revision: 1185
Modified:
pkg/vegan/R/postMDS.R
pkg/vegan/inst/ChangeLog
Log:
metaMDS handles NA values in dissimilarities (but does isoMDS?)
Modified: pkg/vegan/R/postMDS.R
===================================================================
--- pkg/vegan/R/postMDS.R 2010-05-02 18:54:58 UTC (rev 1184)
+++ pkg/vegan/R/postMDS.R 2010-05-05 09:01:53 UTC (rev 1185)
@@ -39,7 +39,7 @@
}
}
if (!halfchange) {
- scl <- max(dist)/max(vegdist(x, "euclidean"))
+ scl <- max(dist, na.rm = TRUE)/max(vegdist(x, "euclidean"))
x <- x*scl
}
if (plot && halfchange) {
Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog 2010-05-02 18:54:58 UTC (rev 1184)
+++ pkg/vegan/inst/ChangeLog 2010-05-05 09:01:53 UTC (rev 1185)
@@ -4,6 +4,9 @@
Version 1.18-4 (opened April 15, 2010)
+ * metaMDS: can handle NA values in dissimilarities (but I do not
+ know if isoMDS can handle them correctly).
+
* mantel.correlog: accepts now user supplied breakpoints or number
of classes like intended.
More information about the Vegan-commits
mailing list