This function translates a gadget output object for a given gadgetYear year and stockTitle stock and inserts it to the FLR objects (fl_stock and fl_index).

updateFLStock(stockTitle, out, gadgetYear, fl_stock, fl_index, globalparams)

Arguments

stockTitle

a string of gadget stock name

out

gadget simulation output object. Normally is the output of [runYear()]

gadgetYear

gadget year target

fl_stock

an existing FLStock object. Normally produced by [runUntil()]

fl_index

an existing FLIndex object. Normally produced by [runUntil()]

globalparams

a list object of parameters to aid gadget to FLR objects generation (See this page vignette("gadget-flr", package = "gadgetr") for an example)