batch.coexistence: batch anlaysis of coexistence summary tables

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/coexist.R

Description

batch analysis of basic statistics for each of the output scenarios under 2-species model as follows: number of parameter combination that lead to s1 species survive across the patches, while s2 species was extinct; number of parameter combination that lead to s2 species survive across the patches, while s1 species was extinct; number of parameter combination that lead to coexsistence of both both species across the patches; The other five parameters were "r1","r2","disp","comp1","comp2" respectively, representing the growth rates, patch connectivity, and competition ability of species 1 and 2.

Usage

1
batch.coexistence(out, island = 10)

Arguments

out

a list of output scenarios for two-species model, each of which should be the combination of species' abundance across the sites by varying the parameters.

island

number of patches used in the modeling

Details

it is a batch form of sta.coexistence() function to handle different coexistence scenarios.

Value

will return a list of matrices, each of which is identical to the output of sta.coexistence() function

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

sta.coexistence, batch.monepar, batch.onepar, 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 (out, island = 10) 
{
    colist <- list()
    scenarionum <- length(out)
    length(colist) <- scenarionum
    for (i in 1:scenarionum) {
        colist[[i]] <- sta.coexistence(out[[i]], island)
    }
    return(colist)
  }

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