Learn R Programming

coexist (version 1.0)

batch.n2n: batch analysis of niche and neutral/nearly-neutral cases for two or multiple species modeling

Description

output will be used by plot_n2n() function to compare species coexistence status under niche and nearly-neutral parameter cases

Usage

batch.n2n(colist,island)

Arguments

colist
output data from batch.coexistence() function for 2-species model, or batch.mcoexistence() funciton for multiple-species model
island
number of patches

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

plot_n2n, batch.coexistence, batch.mcoexistence

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 (colist,island) 
{
    resultlist <- list()
    scenarionum = length(colist)
    length(resultlist) <- scenarionum
    for (i in 1:scenarionum) {
        resultlist[[i]] <- sta.fitness(colist[[i]],island)
    }
    return(resultlist)
  }

Run the code above in your browser using DataLab