Description Usage Arguments Details Value Examples
This function takes named lists as arguments with elements that correspond
to the different parameters of a Gadget fleet component
(see Gadget User Guide). Names of objects passed to ...
will be used
as the fleet names. The first element of the named list should by type,
which specifies the type that fleet will be (i.e.
type = totalfleet, type = numberfleet
, etc.)
1 |
... |
Named objects corresponding to the appropriate arguments to various Gadget fleet types |
WARNING: The implementation of this function for fleets of type quotafleet has not been adequately tested. It should be expected that this portion of the function behaves unexpectedly. If you encounter this and wish it to get fixed sooner rather than later, post an issue to https://github.com/inspktrgadget/gadgetSim
A list of class gadget_fleet
(or a list of class
gadget_fleets
if composed of multiple fleets)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | base_data <-
expand.grid(year = 1:10, steps = 1:4, area = 1, fleetname = "btm")
base_data$amount <- sample(1e5:1e6, nrow(base_data), replace = TRUE)
btm_fleet <-
list(type = "totalfleet",
suitability = make_exponential_suit("btm", "cod"),
amount = base_data)
make_gadget_fleet(btm = btm_fleet)
# different fleet type
lin_flt_data <-
expand.grid(year = 1:10, steps = 1:4, area = 1, fleetname = "lin")
lin_flt_data$scaling <- c(seq(0.01,0.8, length.out = 20),
seq(0.8,0.2,length.out = 20))
lin_flt <-
list(type = "linearfleet",
suitability = make_exponential_suit("lin", "cod"),
amount = lin_flt_data)
make_gadget_fleet(lin = lin_flt)
# can handle multiple fleet types
make_gadget_fleet(btm = btm_fleet, lin = lin_flt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.