Filters cases based on the precedence relations between two sets of activities: antecedents and consequent. The filter can detect directly following activities as well as eventually following activites.
filter_precedence(eventlog, antecedents, consequents,
precedence_type = c("directly_follows", "eventually_follows"),
filter_method = c("each", "one_of"), reverse = F)ifilter_precedence(eventlog)
The event log to be used. An object of class
eventlog
.
The set of antecendent and consequent activities. All pairs of antecedents and consequents are checked for.
When directly_follows
, the consequent activity should happen immediately after the antecedent activities.
When eventually_follows
, other events are allowed to happen in between.
When each
, only cases where all the relations are valid are preserved. When one_of
, all the cases where
at least one of the conditions hold are preserved.
A logical parameter depicting whether the selection should be reversed.