update_printfile: Access elements of default printfiles and update them

Description Usage Arguments Details Value Examples

Description

Access elements of default printfiles and update them

Usage

1
update_printfile(printfile_comp, new_info)

Arguments

printfile_comp

A default printfile list, see printfileDefaults

new_info

A list of named vectors. The names correspond to the arguments to Gadget printfile components, and the vector is the desired value

Details

update_printfile is a generic method for the various printfile types. Each printfile class has its own update_printfile method that returns a list of that class. This family of functions was created to allow for the implementation of any printfiles in functions like make_gadget_printfile. Lists used for printfile must be one of the following classes: stock_std, stock_full, stock, predator, predator_over, prey_over, stock_prey_full, stock_prey, predator_prey, likelihood, likelihood_summary.

Value

A list of class corresponding to the printfile component (update_printfile for the StockStdPrinter returns a list of class stock_std).

Examples

1
2
cod_stock_std <- list(stockname = "cod", printfile = "cod.stock.std")
update_printfile(stock_std, cod_stock_std)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.