[Vegan-commits] r572 - in pkg/vegan: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Nov 19 03:39:13 CET 2008


Author: psolymos
Date: 2008-11-19 03:39:13 +0100 (Wed, 19 Nov 2008)
New Revision: 572

Added:
   pkg/vegan/R/permat.control.R
Modified:
   pkg/vegan/man/permatfull.Rd
Log:
permat.control added


Added: pkg/vegan/R/permat.control.R
===================================================================
--- pkg/vegan/R/permat.control.R	                        (rev 0)
+++ pkg/vegan/R/permat.control.R	2008-11-19 02:39:13 UTC (rev 572)
@@ -0,0 +1,6 @@
+`permat.control` <-
+function(ptype="full", mtype="count", method="quasiswap", fixedmar="both", shuffle="ind", reg=NULL, hab=NULL, burnin=10000, thin=1000)
+{
+list(ptype=ptype, mtype=mtype, method=method, fixedmar=fixedmar, shuffle=shuffle, reg=reg, hab=hab, burnin=burnin, thin=thin)
+}
+

Modified: pkg/vegan/man/permatfull.Rd
===================================================================
--- pkg/vegan/man/permatfull.Rd	2008-11-18 14:56:02 UTC (rev 571)
+++ pkg/vegan/man/permatfull.Rd	2008-11-19 02:39:13 UTC (rev 572)
@@ -2,6 +2,7 @@
 \name{permat}
 \alias{permatfull}
 \alias{permatswap}
+\alias{permat.control}
 \alias{plot.permat}
 \alias{print.permat}
 \alias{summary.permat}
@@ -23,6 +24,9 @@
 hab = NULL, mtype = "count", times = 100)
 permatswap(m, method = "quasiswap", reg = NULL, hab = NULL, 
 mtype = "count", times = 100, burnin = 10000, thin = 1000)
+permat.control(ptype = "full", mtype = "count", method = "quasiswap",
+fixedmar = "both", shuffle = "ind", reg = NULL, hab = NULL,
+burnin = 10000, thin = 1000)
 \method{plot}{permat}(x, ylab="Bray-Curtis dissimilarity", 
 xlab="Runs", col=c(2,4), lty=c(1,2), plot=TRUE, text=TRUE, ...)
 \method{summary}{permat}(object, ...)
@@ -33,6 +37,7 @@
   \item{fixedmar}{character, stating which of the row/column sums should be preserved (\code{"none", "rows", "columns", "both"}).}
   \item{reg}{numeric vector or factor with length same as \code{nrow(m)} for grouping rows within strata (regions) for restricted permutations. Unique values or levels are used.}
   \item{hab}{numeric vector or factor with length same as \code{nrow(m)} for grouping rows within strata (habitat classes) for restricted permutations. Unique values or levels are used.}
+  \item{ptype}{type of quantitative permutation, \code{"full"} to use \code{permatfull} and \code{"swap"} to use \code{permatswap}.}
   \item{mtype}{matrix data type, either \code{"count"} for count data, or \code{"prab"} for presence-absence type incidence data.}
   \item{times}{number of permuted matrices.}
   \item{method}{character for method used for the swap algorithm (\code{"swap"}, \code{"tswap"}, \code{"quasiswap"}, \code{"backtrack"}) as described for function \code{\link{commsimulator}}. If \code{mtype="count"} the \code{"quasiswap"} and \code{"swap"} methods are available (see details).}
@@ -81,6 +86,8 @@
 used for restricted permutations. Each strata should contain at least 2 rows
 in order to perform randomization (in case of low row numbers, swap algorithms
 can be rather slow).
+
+The function \code{permat.control} will be used to set up quantitative matrix permutations in other functions.
 }
 
 \value{



More information about the Vegan-commits mailing list