prey_w_from_pooled_weight: Allocate weight to individual prey lengths from prey-pooled...

View source: R/individual_prey_weights_from_pooled_weight.R

prey_w_from_pooled_weightR Documentation

Allocate weight to individual prey lengths from prey-pooled weights

Description

Allocate weight to individual prey lengths from prey-pooled weights using length-weight relations by prey species and digestion stage from records where prey weights are recorded by the individual record. This is done for the species included in the list of species (control@sel_species). For other species, a total weight by species is calculated and length information is set to missing.

Usage

prey_w_from_pooled_weight(
  stom,
  sum_other_preys = TRUE,
  do_plots = FALSE,
  quantile_lw = c(0.01, 0.99)
)

Arguments

stom

input Stomach contents data of class STOMobs.

sum_other_preys

Flag for transforming preys not included in sel_preys into prey="other food" with no length information

do_plots

Flag for plotting derived length-weight relations and other plots.

quantile_lw

Quantile of size range of prey length to be used for estimating length-weight relation

Value

Stomach data, class STOMobs.

Examples

## Not run: individual_prey_weights_from_pooled_weight(stom=a,sel_preys=c("Clupea harengus"),
      sum_other_preys=TRUE,do_plots=FALSE)
## End(Not run)

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