Skip to contents

This function adjusts the maximum intake rate in order to achieve the desired feeding level for each species. It also adjust the external encounter rate so that the consumption rate does not change in spite of the change of feeding level.

Usage

setFeedingLevel(params, feeding_level)

Arguments

params

A MizerParams object

feeding_level

The feeding level to set for each species. Optional. A vector with one value for each species or a single value that is used for all species. If the argument is missing, the feeding level is taken from the f0 column in the species_params object. If f0 is not present, an error is thrown.

Value

A MizerParams object with the feeding level set

Details

This function only works for models where all encounter is external encounter. Try calling makeNoninteracting() first.