Generate new events to be added to existing vector of events

new_event(evt, env_ch = NULL)

Arguments

evt

Event name and event time

env_ch

Environment in which to save list (should not be defined by user)

Details

The functions to add/modify events/inputs use lists. Whenever several inputs/events are added or modified, it's recommended to group them within one function, as it reduces the computation cost. So rather than use two new_event with a list of one element, it's better to group them into a single new_event with a list of two elements.

Examples

if (FALSE) {
new_event(list("ae"=5))
new_event(list("ae"=5,"nat.death" = 100))
}