make_gadget_strayfile: Create a list of class 'gadget_strayfile' to add to a Gadget...

Description Usage Arguments Value Examples

Description

This function creates a list of class gadget_strayfile that can be added into a gadget_stock. The strayfile will then be written as an attribute at the time of writing

Usage

1
make_gadget_strayfile(steps, areas, stock_ratios, prop_fun)

Arguments

steps

Numeric. The steps in which the stock will stray

areas

Numeric. The areas in which the stock will stray

stock_ratios

Data.frame or list of the stocks and straying ratios

prop_fun

Character. The proportionfunction to use

Value

A list of class gadget_strayfile

Examples

1
2
3
make_gadget_strayfile(steps = 1, areas = 1,
                      stock_ratios = data.frame("cod", 1),
                      prop_fun = c("constant", 1))

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