group_lengths: Convert length to length group

View source: R/sim_pop.R

group_lengthsR Documentation

Convert length to length group

Description

Helper function for converting lengths to length groups (Note: this isn't a general function; the output midpoints defining the groups aligns with DFO specific method/labeling)

Usage

group_lengths(length, group)

Arguments

length

Interval from findInterval

group

Length group used to cut the length data

Value

Returns a vector indicating the mid-point of the length group.


PaulRegular/SimSurvey documentation built on Sept. 21, 2023, 7:42 p.m.