R/utilities.R
match_posns_names.Rd
Change names of biols, catches and fisheries in the control object into integer positions
match_posns_names(trg, biol_names, fishery_catch_names)
The target slot of a fwdControl object
A vector of names in the FLBiols objects
A named list - elements of list are vector of the catch names of each fishery
The updated target slot
Before calling the C++ code it is necessary for the catch, fishery and biol columns (and their Rel) equivalents to be integers. The user can specify by name. This function changes the name to integer position and throws an error if the name does not match.