sim: Run a range simulation

View source: R/RcppExports.R

simR Documentation

Run a range simulation

Description

Run a range simulation

Usage

sim(
  N,
  env,
  alpha,
  beta,
  gamma,
  fecundity,
  nb,
  reflect = TRUE,
  rand = TRUE,
  seed = 1L,
  record = 0L,
  nsteps = 100L
)

Arguments

N

A 3-D array of population numbers for each life stage, over a spatial grid (x, y, class).

env

A list of environmental data. Each element list element should be a 3-D array of dimensions (x, y, variable). The list should have one element for time-invariant environment, or nsteps elements for time-varying environment.

alpha,

beta, gamma, fecundity Demographic parameters; see ?transition and ?reproduce.

nb

Neighborhood matrix; e.g. output from neighborhood.

rand

Randomize transitions instead of using matrix multiplication? (Boolean, default = TRUE).

seed

Integer to seed random number generator.

Value

A 3-D array of population numbers for each life stage.


matthewkling/stranger documentation built on Feb. 25, 2024, 2:31 p.m.