getRDI | R Documentation |
Calculates the density independent recruitment (total egg production)
R_{p,i}
before density dependence, by species. Used by the
project_therMizer
method for performing simulations.
getRDI
method with e_spawning
argument.
getRDI(object, n, n_pp, e_spawning, ...)
## S4 method for signature 'therMizerParams,matrix,numeric,matrix'
getRDI(object, n, n_pp,
e_spawning, sex_ratio = 0.5)
object |
A |
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 |
... |
Other arguments (currently unused). |
sex_ratio |
Proportion of the population that is female. Default value is 0.5. |
ocean_temp |
A numeric vector of the ocean temperature by realm or a single numeric ocean_temp value which is used for all realms. |
A numeric vector the length of the number of species
project_therMizer
## Not run:
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# Project with constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.