Learn R Programming

mizer (version 2.2.0)

resource_constant: Keep resource abundance constant

Description

This function can be used instead of the standard resource_semichemostat() in order to keep the resource spectrum constant over time.

Usage

resource_constant(params, n, n_pp, n_other, rates, t, dt, ...)

Arguments

params

A MizerParams object

n

A matrix of species abundances (species x size)

n_pp

A vector of the resource abundance by size

n_other

A list with the abundances of other components

rates

A list of rates as returned by mizerRates()

t

The current time

dt

Time step

...

Unused

Value

Vector containing resource spectrum at next timestep

Examples

Run this code
# NOT RUN {
params <- newMultispeciesParams(NS_species_params_gears, inter,
                                resource_dynamics = "resource_constant")
# }

Run the code above in your browser using DataLab