correct_diet: A function to correct the diet of trophic species.

View source: R/corrstoich.R

correct_dietR Documentation

A function to correct the diet of trophic species.

Description

A function to correct the diet of trophic species.

Usage

correct_diet(usin, dietlimits = c(NA))

Arguments

usin

The input community in which to fix the diets.

dietlimits

# A matrix the same size as imat that gives the diet limits as a proportion of the total diet. All values must be between 0 and 1. Leaving it as NA sets the limits of all diet items to 1.

Value

The modified community with new diet preferences.


soilfoodwebs documentation built on May 31, 2023, 5:46 p.m.