metacom_sim4HMSC_multParams: Metacommunity Simulation for multiple sets of parameters

Description Usage Arguments

View source: R/full_process_fx.R

Description

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. It is different from the simulation with one set of parameters in that you can assign different dispersal and competition parameters to the species within your simulation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
metacom_sim4HMSC_multParams(
  XY,
  E,
  pars,
  nsteps,
  occupancy,
  niter,
  envResp = "quadratic",
  makeRDS = FALSE,
  whereToSave = NULL,
  objName = NULL
)

Arguments

XY

coordinates for each of the sites or patches

E

matrix of environmental variables measured at each site

pars

in this case, the parameters are a list of prep_pars() outputs or the output of prep_multiparam()

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?


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