View source: R/full_process_fx.R
This function will use the set of given parameters and run the main metacommunity simulation for a set amount of time steps. The output is a list of matrices, where each one of the matrices is an iteration of the metacommunity with the same parameters. It gives the option to save RDS files to the specified directory so these RDS files can be accessed later by other HMSC functions.
1 2 3 4 5 6 7 8 9 10 11 12 | metacom_sim4HMSC(
XY,
E,
pars,
nsteps,
occupancy,
niter,
envResp = "quadratic",
makeRDS = FALSE,
whereToSave = NULL,
objName = NULL
)
|
XY |
coordinates for each of the sites or patches |
E |
matrix of environmental variables measured at each site |
pars |
list of parameters given by the output of the prep_pars() function |
nsteps |
numeric, number of time steps before getting the "snapshot" of a metacommunity |
occupancy |
numeric value between 0-1, to set as the initial conditions occupancy of sites by the different species. |
niter |
number of iterations for simulating the metacommunity with the same parameters. |
envResp |
type of response to the environment: "gaussian" or "quadratic" |
makeRDS |
should the function make an RDS file from the output and save it? Default is FALSE |
whereToSave |
file path for the RDS file to be saved in |
objName |
should the RDS file be saved, what should it be called? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.