commSimulate: Simulate the Model

Description Usage Arguments Value

View source: R/timeSteps.R

Description

This simulates a community over a discrete number of years.

Usage

1
2
commSimulate(n, P, X, y = 1, years = 100, init = F, extInit = F,
  extThresh = 100, manage = NULL)

Arguments

n

Initial population sizes. SxLxW array of population nonnegative integers.

P

List of biotic variables. See commSetup.

X

List of abiotic variables. See commSetup.

y

Current year.

years

How many time steps to run the model.

init

Is the model being initialized? If TRUE, then Tau is set to 0 (no climate chage).

extInit

If TRUE, the simulation stops running after extThresh time steps are completed without any extinctions. When attempting to initialize a stable community, consider setting extInit to T.

extThresh

If extInit==TRUE, then the simulation stops once extInit time steps have passed without any extinctions.

manage

A list with a bunch of management options. See manageSetup If left blank, the model generates a list where all management options are set to FALSE.

Value

A list with n (SxLxWarray of final population sizes over space), N (SxY array of population sizes over time), temps (Y vector of mean temperature over time)


gabackus/rcomms documentation built on Nov. 4, 2019, 1 p.m.