View source: R/put_length_classes_on.R
put_size_class_on_prey | R Documentation |
Put size classes on preys
put_size_class_on_prey(stom, len_classes, too_small_to_other = TRUE)
stom |
stomach contents data of class STOMobs. |
len_classes |
Data frame with size class definitions. See |
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 |
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.
stomach contents data of class STOMobs with added size class for predators.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.