compute_piscivory: Compute piscivory link

Description Usage Arguments Details Value

Description

Determine which size class is piscivorous

Usage

1
2
3
4
5
6
7
8
compute_piscivory(
  size_class,
  fish_diet_shift,
  species,
  low_bound,
  upper_bound,
  fish
)

Arguments

size_class

a data.frame generated by compute_classes

fish_diet_shift

a data.frame containing species, life stage, lower and upper bound size for each stage

species

variable name

low_bound

variable containing lower limit of the stage

upper_bound

variable containing upper limit of the stage. Not used.

fish

name of logical piscivory variable. 0 = no piscivory; 1 = piscivory

Details

If given species class is considered as piscivor if the upper bound of the class is greater than the mininum size to reach piscivory.

Value

a data.frame


alaindanet/SizeTrophicInteractions documentation built on Dec. 18, 2021, 11:32 p.m.