mainfx: Metacommunity Simulation

Description Usage Arguments

View source: R/main_sim_fx.R

Description

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

Usage

1
mainfx(XY, E, pars, Y0, nsteps, envResp = "quadratic")

Arguments

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".


javirudolph/iStructureMetaco documentation built on Dec. 20, 2021, 9:09 p.m.