Learn R Programming

coexist (version 1.0)

batch.mpaircomp: batch analysis to explore coexistence density for different scenarios of a pair of parameters, for the case of multiple species modeling

Description

batch version for the function sta.mpaircomparison()

Usage

batch.mpaircomp(coexistlist,coenum,spnum,parameters)

Arguments

coexistlist
list of data generated by batch.mcoexistence() function
coenum
coexisting species number in a patch you want to explore across the scenarios. Should be >=2 and
spnum
number of species in the model
parameters
a parameter sampling point vector,for example parameters=c(.2,.5,.9), indicating three sampling points in a single parameter. The function will thus compare the coexistence patch numbers under the cases when each of the pairwise parameters (for example, growth rate and the competition ability of a species)=0.2,0.5 and 0.9 respectively.

References

Chen YH (2012) coexist: an R package for performing species coexistence modeling and analysis under asymmetric dispersal and fluctuating source-sink dynamics. http://code.google.com/p/coexist.

See Also

sta.mcomparison, sta.mpaircomparison

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (coexistlist,coenum,spnum,parameters)
{
    if (is.list(coexistlist)) {
        scenarionum <- length(coexistlist)
        pairlist <- list()
        length(pairlist) <- scenarionum
        for (i in 1:scenarionum) {
            pairlist[[i]] <- sta.mpaircomparison(coexistlist[[i]], 
                coenum, spnum = spnum, parameters = parameters)
        }
        return(pairlist)
    }
  }

Run the code above in your browser using DataLab