put_size_class_on_prey: Put size classes on preys from observed length.

View source: R/put_length_classes_on.R

put_size_class_on_preyR Documentation

Put size classes on preys from observed length.

Description

Put size classes on preys

Usage

put_size_class_on_prey(stom, len_classes, too_small_to_other = TRUE)

Arguments

stom

stomach contents data of class STOMobs.

len_classes

Data frame with size class definitions. See make_length_classes. Size class will be added just for the species included in len_classes. If length_classes include sprecies='ALL' all species will get size class.

too_small_to_other

Convert small prey items into other food. Preys smaller than defined by control@min_prey_length are renamed into other food with unknown size if too_small_to_other is TRUE.

Details

This function adds a size group to each prey item based on the prey length (prey_l) if such exist, or based on the midpoint of the size range (prey_ll - prey_lu). Both approaches use an input definition of size groups, typically made by the function make_length_classes. The mean length of the predator (XXXXX) is added either copied from the variable prey_l or from the midpoint of the size range (prey_ll - prey_lu) The size clases are species independent if len_classes includes Species=ALL. . If length classes is given by predator in len_classes, species specific length classes will be added.

Value

stomach contents data of class STOMobs with added size class for predators.


MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.