The population length bins in Stock Synthesis structure size data and empirical weight-at-age data. change_pop_bin changes the data file to contain specifications to create a vector (length-bin method of 2) rather than the actual bins from the length data (length-bin method of 1) or an actual vector (length-bin method of 3).
dat_list: An SS data list object as read in from SS_readdat in the r4ss package. Make sure you select option section=2.
binwidth: A numeric value specifying the width of the size bins.
minimum_size: The smallest size bin.
maximum_size: The largest size bin.
maximum_age: The highest age. Used to structure the maximum age of the population and the ageing-error matrix, which will be assumed to have no bias and maximum precision for any added ages.
Returns
A modified Stock Synthesis data file in list form. The list is only returned if it is assigned to an object.
Details
The only required argument is dat_list and the remaining arguments default to a value of NULL, which leads to the data file not being changed.