Description Usage Arguments Value
Generates parameterized networks and abundance data that can be simulated in Step 2.
1 2 3 | Step1_Generate_Networks(web = "Cascade", foldname = web, path = "Data",
S = 50, C = 0.1, GapProb = 0.25, nwebs = 30, nruns = 30,
Immigration = TRUE, seed = NULL)
|
web |
Model name ('Cascade', 'Niche', or 'MPN') |
foldname |
Folder name where matrices and abundance vectors should be written |
path |
Path where data are kept. 'foldname' will be created as a folder here if it does not already exist |
S |
Number of species in the generated networks |
C |
Network connectance, defined as 2L/(S(S-1)), where L is the number of links. |
GapProb |
Probability of a gap in a niche. Only used if web == 'MPN'. |
nwebs |
Number of random web structures to be generated. |
nruns |
Number of parameterizations to be generated. |
Immigration |
flag marking whether to generate networks under an immigration model or closed model. Defaults to TRUE. |
seed |
Random seed for reproducibility |
This function does not return an object, but it writes parameterized matrices (with file names ending in '-mat.txt') and vectors of equilibrium abundances (with file names ending in '-pop.txt') to the folder path/foldname.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.