Description Usage Arguments Author(s) References See Also Examples
output will be used by plot_n2n() function to compare species coexistence status under niche and nearly-neutral parameter cases
1 | batch.n2n(colist,island)
|
colist |
output data from batch.coexistence() function for 2-species model, or batch.mcoexistence() funciton for multiple-species model |
island |
number of patches |
Youhua Chen <yhchen@zoology.ubc.ca>
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.
plot_n2n
,
batch.coexistence
,
batch.mcoexistence
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##---- 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.