Learn R Programming

WARDEN (version 0.99.1)

new_event: Generate new events to be added to existing vector of events

Description

Generate new events to be added to existing vector of events

Usage

new_event(evt)

Value

No return value, adds event to cur_evtlist and integrates it with the main list for storage

Arguments

evt

Event name and event time

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.

This function is intended to be used only within the add_reactevt function in its input parameter and should not be run elsewhere or it will return an error.

Examples

Run this code
add_reactevt(name_evt = "idfs",input = {new_event(list("ae"=5))})

Run the code above in your browser using DataLab