aggregate_comps: Function to aggregate compositions into a shorter range of...

View source: R/aggregate_comps.R

aggregate_compsR Documentation

Function to aggregate compositions into a shorter range of bins based on data availability in each bin

Description

Function to aggregate compositions into a shorter range of bins based on data availability in each bin

Usage

aggregate_comps(
  comp.data,
  compbins = NULL,
  compression = 1,
  proportion.thresh = 0.9
)

Arguments

comp.data

output from the calc_age2length function, namely a list with objects mulen, muweight, and natlength

compbins

the age or length composition bins you want to compress the data into, either this or compression can be specified but not both

compression

the minimum thresshold for numbers of fish in each bin for the bin to be included in the data, default is 1


r4atlantis/atlantisom documentation built on Nov. 12, 2023, 2:59 a.m.