Description Usage Arguments Value Examples
Update components of an object of class "gadget_model"
1 2 3 4 5 6 7 8 9  | update_model(mod_obj, comp, item = NULL, ...)
update_stock(mod_obj, stockname, comp, item = NULL, ...)
update_fleet(mod_obj, fleetname, ...)
add_fleet(mod_obj, fleet)
rm_fleet(mod_obj, fleetname)
 | 
mod_obj | 
 A list of class   | 
comp | 
 Character vector of the component to update (i.e. stocks, fleets, etc.)  | 
... | 
 Named arguments corresponding to the appropriate name in the respective gadget model component (i.e. for "stocks" the named argument could be growthparameters = c(150, 10, 1e-06, 3))  | 
fleetname | 
 Character. The name of the fleet already present in a Gadget model to either update or remove  | 
fleet | 
 List of type   | 
A list of class gadget_model the same as that of
mod_obj, but updated with the arguments given in ...
1 2 3 4  | path <- system.file(gad_mod_dir, package = "gadgetSim")
mod <- read_gadget_model(path = path)
new_mod <- update_model(mod, "stocks",
                        growthparameters = c(150, 10, 1e-06, 3))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.