Produces an event object suitable for building event schedules to pass spec_rescomp().

event_res_custom(func, resnum = NULL)

Arguments

func

A function that takes resources (a numeric vector of resource concentrations) and params (a list of parameters) and returns a numeric vector of resource concentrations.

resnum

The number of resources.

Value

S3 object of class rescomp_event.

Details

If resnum is NULL, spec_rescomp() will attempt to infer it. This is fine if the result is used directly in an event schedule, but may fail if the result must be combined with other rescomp_events first.

Examples

# TODO