gadget_update.gadgetfleet | R Documentation |
Replace and/or append new fleet comonents to an existing file
## S3 method for class 'gadgetfleet' gadget_update(gf, component, ...)
gf |
The gadgetfile object to update |
component |
Either a replacement |
... |
If a component type was provided above, the extra options to supply to |
## Not run: library(magrittr) # import %>% function path <- './model' gadgetfleet('fleet', path, missingOkay = TRUE) %>% gadget_update( # Add a fleet component 'totalfleet', name = 'comm', data = data.frame(year = 1990, step = 1, area = 1, weight = 1)) %>% write.gadget.file(path) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.