Learn R Programming

stagePop (version 1.1-2)

develFuncDefault: Development Function

Description

Return the rate of development (per unit time)

Usage

develFuncDefault(stage, x, time, species, strain)

Arguments

stage

(integer). The numbered life stage for which to return a developement rate.

x

Vector of state variables within the DDE solver. To access a variable use: x$speciesName['stageName',strainNumber] e.g. for species 'Bacteria', stage 'reproductive', strain 2 use x$Bacteria['reproductive',2] If there is only one stage and strain in species 'Food', for example, use x$Food[1,1]

time

(scalar). The current time point in the DDE solver.

species

(integer). The numbered species for which to return a development rate.

strain

(integer). The numbered strain for which to return a developement rate.

Value

Development rate (units of inverse time) for the strain, stage, species and time specified.

Details

This function will only be called when the timeDependDuration argument to popModel contains TRUE values, otherwise the development rate within a stage is irrelevant to the model.