redist_unidentified_prey_lengths: Redistribute unidentified prey lengths

View source: R/redistribution.R

redist_unidentified_prey_lengthsR Documentation

Redistribute unidentified prey lengths

Description

Redistribute preys with no length information

Usage

redist_unidentified_prey_lengths(
  s,
  dist_time = stratum_time,
  dist_area = stratum_area,
  dist_pred_size = pred_size,
  selected_pred,
  remains_to_other = TRUE,
  others_to_other = TRUE,
  verbose = FALSE
)

Arguments

s

Stomach contents data of class STOMobs.

dist_time

Stratum used for time in constructing proportion of species within a prey group of not fully identified prey items. The variable should be made from variable names in s, or constants.

dist_area

Stratum used for area in constructing proportion of species within a prey group of not fully identified prey items. The variable should be made from variable names in s, or constants.

dist_pred_size

Stratum used for predator size in constructing proportion of species within a prey group of not fully identified prey items. The variable should be made from variable names in s, or constants.

selected_pred

Predators for which redistribution is done. All predators included in s is selected if selected_pred value is missing.

remains_to_other

Convert not fully identified prey species to prey 'other' where no species allocation key cannot be found.

others_to_other

Convert not species not included in selected_pred to prey 'other'.

verbose

Logical, show delatils

Details

Redistribute missing length observations using the observed length distribution of the species ' from the same predator and predator size class within the given area and time strata. Only prey species ' specified by control@sel_preys are redistributed.'

Value

s Stomach contents data of class STOMobs.


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