View source: R/put_length_classes_on.R
put_size_class_on_predator | R Documentation |
Put size classes on predators
put_size_class_on_predator(stom, len_classes)
stom |
stomach contents data of class STOMobs. |
len_classes |
Data frame with size class definitions. See |
This function adds a size group to each predator based on the predator length (pred_l) if such exist,
or based on the midpoint of the size range (pred_ll - pred_lu). Both approaches use an input definition of size groups,
typically made by the function make_length_classes
.
The mean length of the predator (pred_l_mean) is added either copied from the variable pred_l or from the midpoint of the size range (pred_ll - pred_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 wit added size class for predators.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.