[Vegan-commits] r2110 - in pkg/vegan: R inst
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Feb 28 16:45:21 CET 2012
Author: jarioksa
Date: 2012-02-28 16:45:21 +0100 (Tue, 28 Feb 2012)
New Revision: 2110
Modified:
pkg/vegan/R/centroids.cca.R
pkg/vegan/inst/ChangeLog
Log:
names were dropped if a 2-class factor was the only constraint
Modified: pkg/vegan/R/centroids.cca.R
===================================================================
--- pkg/vegan/R/centroids.cca.R 2012-02-26 15:26:34 UTC (rev 2109)
+++ pkg/vegan/R/centroids.cca.R 2012-02-28 15:45:21 UTC (rev 2110)
@@ -19,7 +19,7 @@
for(i in 1:length(tmp)) {
names(tmp[[i]]) <- paste(pnam[i], names(tmp[[i]]), sep="")
out <- c(out, tmp[[i]])
- out <- matrix(out, nrow=1)
+ out <- matrix(out, nrow=1, dimnames = list(NULL, names(out)))
}
} else {
for (i in 1:length(tmp)) {
Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog 2012-02-26 15:26:34 UTC (rev 2109)
+++ pkg/vegan/inst/ChangeLog 2012-02-28 15:45:21 UTC (rev 2110)
@@ -4,6 +4,10 @@
Version 2.1-13 (opened February 23, 2012)
+ * cca/rda/capscale: names of levels could be dropped if a
+ two-class factor was used as the only constraint. Noticed in an
+ email of Sascha Kirchner (Univ Helsinki, Finland).
+
* scores: expand description of the default method to avoid
confusion with specific vegan methods.
More information about the Vegan-commits
mailing list