Description Usage Arguments Details Value Methods (by class) See Also
View source: R/filter_precedence.R
Filters cases based on the precedence relations between two sets of activities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | filter_precedence(eventlog, antecedents, consequents, precedence_type,
filter_method, reverse)
## S3 method for class 'eventlog'
filter_precedence(eventlog, antecedents, consequents,
precedence_type = c("directly_follows", "eventually_follows"),
filter_method = c("all", "one_of", "none"), reverse = FALSE)
## S3 method for class 'grouped_eventlog'
filter_precedence(eventlog, antecedents,
consequents, precedence_type = c("directly_follows",
"eventually_follows"), filter_method = c("all", "one_of", "none"),
reverse = FALSE)
ifilter_precedence(eventlog)
|
eventlog |
The dataset to be used. Should be a (grouped) eventlog object. |
antecedents, consequents |
The set of antecendent and consequent activities. Both are character vectors containing at leaste one activity identifier. All pairs of antecedents and consequents are turned into seperate precedence rules. |
precedence_type |
When |
filter_method |
When |
reverse |
Logical, indicating whether the selection should be reversed. |
In order to extract a subset of an event log which conforms with a set of precedence rules, one can use the filter_precedence method. There are two types of precendence relations which can be tested: activities that should directly follow each other, or activities that should eventually follow each other. The type can be set with the precedence type argument. Further, the filter requires a vector of one or more antecedents (containing activity labels), and one or more consequents. Finally, also a filter method argument can be set. This argument is relevant when there is more than one antecedent or consequent. In such a case, you can specify that all possible precedence combinations must be present (all), at least one of them (one of), or none (none).
When given an eventlog, it will return a filtered eventlog. When given a grouped eventlog, the filter will be applied in a stratified way (i.e. each separately for each group). The returned eventlog will be grouped on the same variables as the original event log.
eventlog
: Filter event log
grouped_eventlog
: Filter grouped event log
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.