proto_event3 function

Detect proto-events based on a chosen criterion (column).