batch.n2n: batch analysis of niche and neutral/nearly-neutral cases for...

Description Usage Arguments Author(s) References See Also Examples

View source: R/coexist.R

Description

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

Usage

1
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

Author(s)

Youhua Chen <yhchen@zoology.ubc.ca>

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

 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)
  }

coexist documentation built on May 2, 2019, 1:43 p.m.