group_prey_species: Group prey species names.

View source: R/group_preys.R

group_prey_speciesR Documentation

Group prey species names.

Description

Prey species are renamed and re-grouped into larger groups of prey, with summed prey weights. The simplest approach maintain the species names provided by keep_prey_names and rename all other preys into "other". A more complex method uses a key based on the NODC to split (see NODC_split).

Usage

group_prey_species(
  stom,
  keep_prey_names,
  sum_other_food = TRUE,
  NODC_split,
  show_allocations = FALSE,
  verbose = FALSE
)

Arguments

stom

Stomach contents data of class STOMobs.

keep_prey_names

Names of preys to be kept unchanged. Remaining preys are renamed to "other" and their prey sizes are changed to missing.

sum_other_food

Sum stomach contents of "other" preys.

NODC_split

Input file with the fields XXXXX

show_allocations

If true the allocation of prey names into groups are shown, when the NODC_split is used. in the control object are renamed into "other".

verbose

Show extra information

Value

Stomach contents data of class STOMobs. Prey sizes and number of preys as set to missing for preys in the "other" food group.


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