simulator: Simulator

Description Usage Arguments Value Examples

View source: R/simulator.R

Description

Simulator

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
simulator(
  grid = 20,
  Nt = 50,
  timestep = 30,
  topography = generateTopography(),
  NCI = generateNCI(),
  sigmaGtopo = 1,
  sigmaZtopo = 1,
  sigmaGnci = 26,
  sigmaZnci = 26,
  Pdeath = 0.01325548,
  Ns = 4,
  Rpollination = 1,
  Rdispersion = 1,
  determinist = TRUE
)

Arguments

grid

int. Number of cells per side of the matrix.

Nt

int. Number of time steps.

timestep

int. Time-step length in years.

topography

matrix. Topography matrix generated with generateTopography.

NCI

matrix. Topography matrix generated with generateNCIsim.

sigmaGtopo

double. Variance of genetic values with topography.

sigmaZtopo

double. Plasticity of phenotypes with topography.

sigmaGnci

double. Variance of genetic values with NCI.

sigmaZnci

double. Plasticity of phenotypes with NCI.

Pdeath

double. Background mortality probability.

Ns

int. Number of seedlings per cell.

Rpollination

int. Pollination radius in cells (father to mother).

Rdispersion

int. Dispersal radius in cells (mother to seedling).

determinist

bool. Deterministic or probabilistic viability.

Value

A data frame.

Examples

1

sylvainschmitt/ecoevosimulator documentation built on Nov. 19, 2020, 8:04 a.m.