Check if a patient has a specific event in the queue
has_event(event_name, ptr, patient_id, exclude_inf = FALSE)Logical, TRUE if the event exists for the patient (optionally excluding Inf), FALSE otherwise.
Character string, the name of the event.
The event queue pointer. Defaults to cur_evtlist.
The patient ID. Defaults to i.
Logical, whether to exclude events with Inf time. Default is FALSE.