act_collapse {bupaR}R Documentation

Collapse activity labels of a sub process into a single activity


Collapse activity labels of a sub process into a single activity


act_collapse(eventlog, ..., method)

## S3 method for class 'eventlog'
act_collapse(eventlog, ..., method = c("entry_points", "consecutive"))



An eventlog object


A series of named character vectors. The activity labels in each vector will be collapsed into one activity with the name of the vector.


Defines how activities are collapsed: "entry_points" heuristically learns which of the specified activities occur at the start and end of the subprocess and collapses accordingly. "consecutive" collapses consecutive sequences of the activities.


There are different strategies to collapse activity labels (argument ┬┤method┬┤). The "entry_points" method aims to learn the start and end activities of the sub process, by looking at the first and last activity in each case over the whole log. Subsequently, it will create a new instance of the sub process each time there is an end activity followed by a start activity. This strategy will not take into account other activities happening in the mean time. The "consecutive" method will create an instance each time a new sequence of sub activities is started. This strategy will thus only take into account interruptions of the other activity labels.

Methods (by class)

See Also

Other Activity processing functions: act_recode(), act_unite()

[Package bupaR version 0.4.4 Index]