Skip to contents

This function applies a user-supplied function to a SimulationObject to define effort.

Usage

sim_effort(simulation_object, fun = NULL, sf = NULL, ...)

Arguments

simulation_object

A SimulationObject containing simulation data.

fun

A function that takes the simulation_object and additional parameters, and returns a modified simulation_object with effort data.

sf

Optional; if provided, skips applying 'fun' and directly uses this Spatial*DataFrame (sf) for effort calculation.

...

Additional parameters passed to the user-supplied function 'fun'.

Value

A SimulationObject with updated effort information.

Examples

if (FALSE) { # \dontrun{
sim_effort(simulation_object, fun, ...)
} # }