R/LengthDistribution.R
RegroupLengthDistribution.Rd
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
RegroupLengthDistribution(LengthDistributionData, LengthInterval = numeric())
The LengthDistributionData
data.
Specifies the new length intervals, given as a single numeric value representing the constant length interval widths, (starting from 0).
An object of StoX data type LengthDistributionData
.
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).