RegroupLengthDistribution: Regroup length distribution to common intervals

View source: R/LengthDistribution.R

RegroupLengthDistributionR Documentation

Regroup length distribution to common intervals

Description

The RegroupLengthDistribution function is used to set a common length group resolution for one or all SpeciesCategories throughout the output length distribution dataset. The function aggregates the WeightedNumber of the LengthDistributionData

Usage

RegroupLengthDistribution(LengthDistributionData, LengthInterval = numeric())

Arguments

LengthDistributionData

The LengthDistributionData data.

LengthInterval

Specifies the new length intervals, given as a single numeric value representing the constant length interval widths, (starting from 0).

Details

An intevral vector starting from 0 with increments of Resolution will be created, and the current length intervals (IndividualTotalLength, IndividualTotalLength + LengthResolution) will be located into the interval vector. Present intervals that intersect with more than one interval in the interval vector result in an error (e.g. IndividualTotalLength = 2.4 with LengthResolution = 0.3 will intersect with two intervals when Resolution = 0.5, and IndividualTotalLength = 2.4 with LengthResolution = 0.1 will intersect with two intervals when Resolution = 0.05).

Value

An object of StoX data type LengthDistributionData.


StoXProject/RstoxBase documentation built on July 14, 2024, 9:39 a.m.