gadgetstock.Rd
Create a gadgetstock object, from fresh or an existing file
gadgetstock(stock_name, path, missingOkay = FALSE)
The name of the stock, as
The path to the gadget directory to read from
If TRUE
, return an empty gadgetstock object if file does not exist.
A list of lists representing the gadget stock file
if (FALSE) {
path <- './cod-model'
# Read codmat from './cod-model', throw an error if it doesn't exist
gadgetstock('codmat', path, missingOkay = TRUE)
# Read codimm stock / create a new one
gadgetstock('codimm', path, missingOkay = TRUE)
}