This function will use all the process functions to generate a metacommunity with the given parameters. It will only store the occurrence matrix at the end of the simulation
1 | mainfx(XY, E, pars, Y0, nsteps, envResp = "quadratic")
|
XY |
coordinates for each of the patches |
E |
environmental covariates measured for each patch. Our simulation only included one so far |
pars |
output from the prep_pars function. It is a list of necessary parameters to run all the process functions |
Y0 |
matrix of initial conditions, occurrence matrix |
nsteps |
time steps to simulate metacomminuty dynamics |
envResp |
choose between a "quadratic" or "gaussian" response to the environment. Default is "quadratic". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.