Looks in the specified rows find the time at which the first occurrence of a specified event name is called, and takes the first across all sequence columns

get_time_of_first_event_multi(df, event_type)

Arguments

df

The entire trial_results data frame

event_type

A string containing the name of the event type column. This should contain a character vector of "Wait", "Event Call", "Animate Behaviour", "Move Towards, "Rotate Towards" "Head Look".

Value

The entire trial_results data frame with columns first_event_time and first_event_index added