getRDI: Get density independent recruitment

Description Usage Arguments Value See Also Examples

Description

Calculates the density independent recruitment (total egg production) R_{p.i} before density dependence, by species. Used by the project method for performing simulations.

getRDI method with e_spawning argument.

getRDI method without e_spawning argument.

Usage

1
2
3
4
5
6
7
8
9
getRDI(object, n, n_pp, e_spawning, ...)

## S4 method for signature 'MizerParams,matrix,numeric,matrix'
getRDI(object, n, n_pp,
  e_spawning, sex_ratio = 0.5)

## S4 method for signature 'MizerParams,matrix,numeric,missing'
getRDI(object, n, n_pp,
  sex_ratio = 0.5)

Arguments

object

A MizerParams object.

n

A matrix of species abundance (species x size).

n_pp

A vector of the background abundance by size.

e_spawning

The energy available for spawning (optional). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getESpawning method.

...

Other arguments (currently unused).

sex_ratio

Proportion of the population that is female. Default value is 0.5.

Value

A numeric vector the length of the number of species

See Also

project

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(NS_species_params_gears)
data(inter)
params <- MizerParams(NS_species_params_gears, inter)
# Project with constant fishing effort for all gears for 20 time steps
sim <- project(params, t_max = 20, effort = 0.5)
# Get the recruitment at a particular time step
getRDI(params,sim@n[21,,],sim@n_pp[21,])

## End(Not run)

drfinlayscott/mizer documentation built on May 18, 2018, 9:20 a.m.