Helper function for converting lengths to length groups. Note: This is not a general-purpose function — the output midpoints defining the groups are aligned with DFO-specific methods and labeling conventions.
group_lengths(length, group)
Numeric vector of lengths to be grouped. Used with base::findInterval()
.
Numeric value specifying the width of the length group (i.e., bin size).
A numeric vector indicating the midpoint of the assigned length group.