calc_G: Create environmental driver, G

Description Usage Arguments Value

View source: R/MICE_initialization.R

Description

Generates a unique time series for each prey species to simulate an environment that switches between high (good reproduction) and low (poor reproduction) states. The function samples from a list of period lengths for low and high periods that is read in from an internal file (envir_periods.csv). The period lengths and reproduction values for the periods are balanced to match observed patterns.

Usage

1
calc_G(Species, simParams)

Arguments

Species

A Prey species object.

simParams

A simulationParameters object

Value

A modified Prey object, with the G slot set.


jcpayne/mice-models documentation built on May 18, 2019, 10:25 p.m.