Skip to content

Commit 70f694a

Browse files
Merge pull request #429 from StoXProject/develop
Develop
2 parents 9fe640b + 06ce9af commit 70f694a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RstoxData
2-
Version: 2.1.4-9002
3-
Date: 2025-03-26
2+
Version: 2.1.4-9003
3+
Date: 2025-03-27
44
Title: Tools to Read and Manipulate Fisheries Data
55
Authors@R: c(
66
person(given = "Edvin",

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# RstoxData v2.1.4-9003 (2025-03-27)
2+
* Corrected error in ICESDatras() where finalHL was not data.table copied from mergedHL, causing Sex to be NA in the CA table.
3+
4+
15
# RstoxData v2.1.4-9002 (2025-03-26)
26
* Corrected error in ICESDatras() where HLNoAtLngt was not properly set (Sex set to NA after HLNoAtLngt was calculated).
37

R/StoxExport.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ ICESDatrasOne <- function(
12331233

12341234

12351235
# To fix the problem that the procedure at the IMR is to not split sex into different subsamples, we set the sex to NA here, so that aggregation to produce noMeas and totalNo sum over sexes. The reason for this is that catCatchWgt and subWeight are in practice summed over sexes, and we do not want to do estimation to split these by sex.
1236-
finalHL <- mergedHL
1236+
finalHL <- data.table::copy(mergedHL)
12371237
finalHL[, sex := NA]
12381238

12391239
# Aggregate hlNoAtLngth and lsCountTot

0 commit comments

Comments
 (0)