joinIter function allows to join different outputs of FBEIA simulations. For example when simulations are run iteration by iteration separately, with this function we can merged all the iterations into one FLBEIA output object.

joinIter(objnam, files, directory = NULL, Niters = 1,
  elements = "all", advice.ext = "TAC",
  fleets.ctrl.ext = "seasonal.share")

Arguments

objnam

Character. The name of the object that will be joined. The object must be the output of FLBEIA function.

files

A character vector with the names of the files from which objnam will be taken.

directory

The directory were the files are stored. Default value is the current directory.

Niters

A numeric vector with the number of iterations per object. If length=1, then it is assumed that all objects have the same number of iterations.

elements

The elements of the objects that must be joined. The default is to join all the objects.

advice.ext

Character. The element from advice object that will be replaced. Default is 'TAC'.

fleets.ctrl.ext

Character. The element from fleets.ctrl object that will be replaced. Default is 'seasonal.share'.

Value

A new FLBEIA output object with all the iterations joined.

Note

The files must contain a single object (named as objnam value).