[Vegan-commits] r2396 - in pkg/vegan: R inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 30 17:56:46 CET 2013


Author: psolymos
Date: 2013-01-30 17:56:45 +0100 (Wed, 30 Jan 2013)
New Revision: 2396

Modified:
   pkg/vegan/R/simulate.nullmodel.R
   pkg/vegan/inst/ChangeLog
Log:
dimnames introduced to simulate.nullmodel

Modified: pkg/vegan/R/simulate.nullmodel.R
===================================================================
--- pkg/vegan/R/simulate.nullmodel.R	2013-01-30 16:42:00 UTC (rev 2395)
+++ pkg/vegan/R/simulate.nullmodel.R	2013-01-30 16:56:45 UTC (rev 2396)
@@ -60,5 +60,7 @@
     attr(perm, "end") <- End
     attr(perm, "thin") <- as.integer(thin)
     class(perm) <- c("simmat", "array")
+    dimnames(perm) <- list(rownames(m), colnames(m),
+        paste("sim", seq_len(nsim), sep = "_"))
     perm
 }

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2013-01-30 16:42:00 UTC (rev 2395)
+++ pkg/vegan/inst/ChangeLog	2013-01-30 16:56:45 UTC (rev 2396)
@@ -4,6 +4,12 @@
 
 Version 2.1-24 (opened January 25, 2013)
 
+	* simulate.nullmodel: output array inherits dimnames after the
+	input data matrix, this is often required by oecosimu.
+	Dimension names are now only stored once for all nsim
+	simulations, so it is an improvement over the implementation
+	in commsimulator.
+
 	* oecosimu: the 'oecosimu' list cannot be added to the result if
 	the nestfun() returns a data frame. In that case, the 'oecosimu'
 	list is treated like a variable, and this gives either an error of



More information about the Vegan-commits mailing list