Set constant feeding level for each species in a non-interacting model
Source:R/setFeedingLevel.R
setFeedingLevel.Rd
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.
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. Iff0
is not present, an error is thrown.
Details
This function only works for models where all encounter is external
encounter. Try calling makeNoninteracting()
first.