Produces an event object representing a pulse of added/removed resources.

event_res_add(resources, min_zero = TRUE)

Arguments

resources

A numeric vector or rescomp_coefs_vector of resource concentrations, by which the current resource concentrations are increased. Can be negative, to decrease resource concentrations.

min_zero

If this is TRUE, resulting resource concentrations are clamped to a minimum of zero. If this is FALSE, negative values of resources may reduce resource concentrations below zero.

Value

S3 object of class rescomp_event.

Examples

# TODO