Learn R Programming

mizer (version 1.0.1)

getEGrowth: Get energy rate available for growth

Description

Calculates the energy rate \(g_i(w)\) available by species and size for growth after metabolism, movement and reproduction have been accounted for. Used by the project method for performing simulations.

Usage

getEGrowth(object, n, n_pp, e_spawning, e)

# S4 method for MizerParams,matrix,numeric,matrix,matrix getEGrowth(object, n, n_pp, e_spawning, e)

# S4 method for MizerParams,matrix,numeric,missing,missing getEGrowth(object, n, n_pp)

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, although if specified, e must also be specified). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getESpawning method.

e

The energy available for reproduction and growth (optional, although if specified, e_spawning must also be specified). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getEReproAndGrowth method.

Value

A two dimensional array (prey species x prey size)

See Also

project

Examples

Run this code
# 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 energy at a particular time step
getEGrowth(params,sim@n[21,,],sim@n_pp[21,])
# }

Run the code above in your browser using DataLab