The purpose of this line of code is not clear. It implies that in a data set spanning multiple years, this line of code uses the second to last year is used for the estimation of total mortality. It its important that this variable becomes an input to be set by the user.
https://github.com/tokami/StockMonitoringTool/blob/bad1210832b434e477c157c99addc38066a1dcd2/assets/tropFishR/algorithms/run_elefan_ga.R#L129
The purpose of this line of code is not clear. It implies that in a data set spanning multiple years, this line of code uses the second to last year is used for the estimation of total mortality. It its important that this variable becomes an input to be set by the user.