Produces an event object representing a pulse of added/removed consumers, e.g. a species introduction.

event_sp_add(species, min_zero = TRUE)

Arguments

species

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

min_zero

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

Value

S3 object of class rescomp_event.

Examples

# TODO