Internal helper used by the MizerSim rate getters. Given rate functions
already resolved once with projectRateFunctions(), it calculates only those
rates needed to obtain the requested targets (plus their dependencies),
avoiding both the per-time-step cost of re-resolving the functions and the
cost of computing rates that are not required. The individual calculations
mirror those in mizerRates().
mizer_rates_subset(
params,
n,
n_pp,
n_other,
t,
effort,
rates_fns,
targets,
...
)A named list of the calculated rates, using the same element names
as the list returned by mizerRates().
A valid MizerParams object.
A matrix of species abundances (species x size).
A vector of the resource abundance by size.
A named list of the abundances of other components.
The time for the calculation.
The fishing effort. Only used when a target requires the fishing mortality.
Named list of resolved rate functions, as returned by
projectRateFunctions().
Character vector of rate names (as in params@rates_funcs)
to calculate.
Passed on to the individual rate functions.