Learn R Programming

mizer (version 2.0.3)

getDiet: Get diet of predator at size, resolved by prey species

Description

Calculates the rate at which a predator of a particular species and size consumes biomass of each prey species and resource.

Usage

getDiet(
  params,
  n = initialN(params),
  n_pp = initialNResource(params),
  n_other = initialNOther(params),
  proportion = TRUE
)

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 of abundances for other dynamical components of the ecosystem

proportion

If TRUE (default) the function returns the diet as a proportion of the total consumption rate. If FALSE it returns the consumption rate in grams.

Value

An array (predator species x predator size x (prey species + resource + other components) )

Details

This function performs the same integration as getEncounter() but does not aggregate over prey species, and multiplies by (1-feeding_level) to get the consumed biomass rather than the available biomass. Outside the range of sizes for a predator species the returned rate is zero.

See Also

Other summary functions: getBiomass(), getGrowthCurves(), getN(), getSSB(), getYieldGear(), getYield()