prep_pars: Prepare metacommunity parameters

Description Usage Arguments

View source: R/prep_pars_fx.R

Description

This function is used to prepare the parameters in a useful format and avoid lengthy code for every simulation. It will output all parameters in a list ready for the main_sim_fx()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
prep_pars(
  N = NULL,
  D = NULL,
  R = NULL,
  nicheOpt = NULL,
  breadth = NULL,
  alpha = NULL,
  interx_col = NULL,
  interx_ext = NULL,
  makeRDS = FALSE,
  whereToSave = NULL,
  objName = NULL
)

Arguments

N

number of patches for the simulation

D

number of environmental variables simulated

R

number of species for the simulation

nicheOpt

vector with niche optima for each species. Default is range equally divided among species.

breadth

niche breadth. As reference 0.8 as narrow and 2 as broad with a quadratic response.

alpha

dispersal parameter associated to an exponential distribution

makeRDS

whether to save the output as an RDS file

whereToSave

file path to save output

objName

name for the output

interex_col

Species sensitivity to interactions. For our simulations, sensitivity is set the same for all species, and both for colonization and extinction

interex_ext

Species sensitivity to interactions. For our simulations, sensitivity is set the same for all species, and both for colonization and extinction


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