Title: | Business Process Analysis in R |
---|---|
Description: | Comprehensive Business Process Analysis toolkit. Creates S3-class for event log objects, and related handler functions. Imports related packages for filtering event data, computation of descriptive statistics, handling of 'Petri Net' objects and visualization of process maps. See also packages 'edeaR','processmapR', 'eventdataR' and 'processmonitR'. |
Authors: | Gert Janssenswillen [aut, cre], Gerard van Hulzen [ctb], Felix Mannhardt [ctb], Niels Martin [ctb], Greg Van Houdt [ctb] |
Maintainer: | Gert Janssenswillen <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.5.2 |
Built: | 2025-01-24 03:11:34 UTC |
Source: | https://github.com/bupaverse/bupar |
Collapse activity labels of a sub process into a single activity
act_collapse(log, ..., method, eventlog = deprecated()) ## S3 method for class 'eventlog' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() ) ## S3 method for class 'activitylog' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() ) ## S3 method for class 'grouped_log' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() )
act_collapse(log, ..., method, eventlog = deprecated()) ## S3 method for class 'eventlog' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() ) ## S3 method for class 'activitylog' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() ) ## S3 method for class 'grouped_log' act_collapse( log, ..., method = c("entry_points", "consecutive"), eventlog = deprecated() )
log |
|
... |
A series of named character vectors. The activity labels in each vector will be collapsed into one activity with the name of the vector. |
method |
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. |
eventlog |
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.
act_collapse(eventlog)
: Collapse activity labels of a subprocess into a single activity
act_collapse(activitylog)
: Collapse activity labels of a subprocess into a single activity
act_collapse(grouped_log)
: Collapse activity labels of a subprocess into a single activity
Other Activity processing functions:
act_recode()
,
act_unite()
Recode one or more activity labels through specifying their old and new label
act_recode(log, ..., eventlog = deprecated()) ## S3 method for class 'log' act_recode(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' act_recode(log, ..., eventlog = deprecated())
act_recode(log, ..., eventlog = deprecated()) ## S3 method for class 'log' act_recode(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' act_recode(log, ..., eventlog = deprecated())
log |
|
... |
A sequence of named character vectors of length one where the names gives the new label and the value gives the old label. Labels not mentioned will be left unchanged. |
eventlog |
act_recode(log)
: Recode activity labels of event log
act_recode(grouped_log)
: Recode activity labels of event log
eventlog
, activity_id
, act_unite
Other Activity processing functions:
act_collapse()
,
act_unite()
Recode two or different more activity labels two a uniform activity label
act_unite(log, ..., eventlog = deprecated()) ## S3 method for class 'log' act_unite(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' act_unite(log, ..., eventlog = deprecated())
act_unite(log, ..., eventlog = deprecated()) ## S3 method for class 'log' act_unite(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' act_unite(log, ..., eventlog = deprecated())
log |
|
... |
A series of named character vectors. The activity labels in each vector will be replaced with the name. |
eventlog |
act_unite(log)
: Unite activity labels in event log
act_unite(grouped_log)
: Unite activity labels of event log
eventlog
, activity_id
, act_recode
Other Activity processing functions:
act_collapse()
,
act_recode()
Returns a tibble
containing a list of all activity types in the event log, with their absolute and relative frequency
activities(log, ..., eventlog) ## S3 method for class 'activitylog' activities(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' activities(log, ..., eventlog = deprecated())
activities(log, ..., eventlog) ## S3 method for class 'activitylog' activities(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' activities(log, ..., eventlog = deprecated())
log |
|
... |
Unused. |
eventlog |
activities(activitylog)
: Compute activity frequencies
activities(grouped_log)
: Compute activity frequencies
activity_id
,activity_instance_id
, eventlog
Get the activity classifier of an object of class eventlog
.
activity_id(x) ## Default S3 method: activity_id(x) ## S3 method for class 'log_mapping' activity_id(x)
activity_id(x) ## Default S3 method: activity_id(x) ## S3 method for class 'log_mapping' activity_id(x)
x |
|
activity_id(default)
: Retrieve activity identifier from log
activity_id(log_mapping)
: Retrieve activity identifier from mapping
eventlog
, activitylog
, mapping
Other Classifiers:
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Get the activity instance classifier of an object of class eventlog
.
activity_instance_id(x) ## S3 method for class 'eventlog' activity_instance_id(x) ## S3 method for class 'eventlog_mapping' activity_instance_id(x) ## S3 method for class 'activitylog' activity_instance_id(x) ## S3 method for class 'activitylog_mapping' activity_instance_id(x)
activity_instance_id(x) ## S3 method for class 'eventlog' activity_instance_id(x) ## S3 method for class 'eventlog_mapping' activity_instance_id(x) ## S3 method for class 'activitylog' activity_instance_id(x) ## S3 method for class 'activitylog_mapping' activity_instance_id(x)
x |
An |
activity_instance_id(eventlog)
: Retrieve activity instance identifier from eventlog
activity_instance_id(eventlog_mapping)
: Retrieve activity instance identifier from eventlog mapping
activity_instance_id(activitylog)
: Retrieve activity instance identifier from activitylog
activity_instance_id(activitylog_mapping)
: Retrieve activity instance identifier from activitylog mapping
Other Classifiers:
activity_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Retrieve a vector containing all unique activity labels
activity_labels(log, eventlog = deprecated()) ## S3 method for class 'log' activity_labels(log, eventlog = deprecated())
activity_labels(log, eventlog = deprecated()) ## S3 method for class 'log' activity_labels(log, eventlog = deprecated())
log |
|
eventlog |
activity_labels(log)
: Retrieve activity labels
Create activity log
activitylog(activitylog, case_id, activity_id, resource_id, timestamps, order)
activitylog(activitylog, case_id, activity_id, resource_id, timestamps, order)
activitylog |
The data object to be used as activity log. This can be a
|
case_id |
The case classifier of the activity log. A character vector containing variable names of length 1 or more. |
activity_id |
The activity classifier of the activity log. A character vector containing variable names of length 1 or more. |
resource_id |
The resource identifier of the activity log. A character vector containing variable names of length 1 or more. |
timestamps |
The columns with timestamps refering to different lifecycle events. A character vector of 1 or more. These should have one of the following names: "schedule","assign","reassign","start","suspend","resume","abort_activity","abort_case","complete","manualskip","autoskip". These columns should be of the Date or POSIXct class. |
order |
Configure how to handle sort events with equal timestamps: auto will use the order in the original data, alphabetical will sort the activity labels by alphabet, sorted will assume that the data frame is already correctly sorted and has a column '.order', providing a column name will use this column for ordering (can be numeric of character). The latter will never overrule timestamp orderings. |
Adds an artificial start or end activity to each case with the specified label
.
add_end_activity(log, label = "End", eventlog = deprecated()) add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'eventlog' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'activitylog' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'grouped_log' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'eventlog' add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'activitylog' add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'grouped_log' add_start_activity(log, label = "Start", eventlog = deprecated())
add_end_activity(log, label = "End", eventlog = deprecated()) add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'eventlog' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'activitylog' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'grouped_log' add_end_activity(log, label = "End", eventlog = deprecated()) ## S3 method for class 'eventlog' add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'activitylog' add_start_activity(log, label = "Start", eventlog = deprecated()) ## S3 method for class 'grouped_log' add_start_activity(log, label = "Start", eventlog = deprecated())
log |
|
label |
|
eventlog |
add_end_activity(eventlog)
: Adds end activity to an eventlog
.
add_end_activity(activitylog)
: Adds end activity to an activitylog
.
add_end_activity(grouped_log)
: Adds end activity to a grouped_log
.
add_start_activity(eventlog)
: Adds start activity to an eventlog
.
add_start_activity(activitylog)
: Adds start activity to an activitylog
.
add_start_activity(grouped_log)
: Adds start activity to a grouped_log
.
as.grouped.data.frame
as.grouped.data.frame(data, groups)
as.grouped.data.frame(data, groups)
data |
Data |
groups |
Names of grouping variables as character vector (e.g. by using |
Apply heuristics to create an activity instance identifier, so that an eventlog can be made.
assign_instance_id(eventlog, case_id, activity_id, timestamp, lifecycle_id)
assign_instance_id(eventlog, case_id, activity_id, timestamp, lifecycle_id)
eventlog |
data.frame with events |
case_id |
Case identifier |
activity_id |
Activity identifier |
timestamp |
Timestamp |
lifecycle_id |
Lifecycle identifier |
Other Eventlog construction helpers:
convert_timestamps()
Functionalities for process analysis in R. This packages implements an S3-class for event log objects, and related handler functions. Imports related packages for subsetting event data, computation of descriptive statistics, handling of Petri Net objects and visualization of process maps.
Get the case classifier of an object of class eventlog
case_id(x) ## S3 method for class 'eventlog' case_id(x) ## S3 method for class 'eventlog_mapping' case_id(x) ## S3 method for class 'activitylog' case_id(x) ## S3 method for class 'activitylog_mapping' case_id(x)
case_id(x) ## S3 method for class 'eventlog' case_id(x) ## S3 method for class 'eventlog_mapping' case_id(x) ## S3 method for class 'activitylog' case_id(x) ## S3 method for class 'activitylog_mapping' case_id(x)
x |
|
case_id(eventlog)
: Retrieve case identifier from eventlog
case_id(eventlog_mapping)
: Retrieve case identifier from eventlog mapping
case_id(activitylog)
: Retrieve case identifier from activitylog
case_id(activitylog_mapping)
: Retrieve case identifier from activitylog mapping
eventlog
, activitylog
, mapping
Other Classifiers:
activity_id()
,
activity_instance_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Retrieve a vector containing all unique case labels
case_labels(log, eventlog = deprecated()) ## S3 method for class 'log' case_labels(log, eventlog = deprecated())
case_labels(log, eventlog = deprecated()) ## S3 method for class 'log' case_labels(log, eventlog = deprecated())
log |
|
eventlog |
case_labels(log)
: Retrieve case labels from log
Construct list of cases
case_list(log, .keep_trace_list, eventlog = deprecated()) ## S3 method for class 'eventlog' case_list(log, .keep_trace_list = FALSE, eventlog = deprecated()) ## S3 method for class 'activitylog' case_list(log, .keep_trace_list = FALSE, eventlog = deprecated())
case_list(log, .keep_trace_list, eventlog = deprecated()) ## S3 method for class 'eventlog' case_list(log, .keep_trace_list = FALSE, eventlog = deprecated()) ## S3 method for class 'activitylog' case_list(log, .keep_trace_list = FALSE, eventlog = deprecated())
log |
|
.keep_trace_list |
Logical (default is |
eventlog |
case_list(eventlog)
: Return case list
case_list(activitylog)
: Return case list
Provides a fine-grained summary of an event log with characteristics for each case: the number of events, the number of activity types, the timespan, the trace, the duration, and the first and last event type.
cases(log, ..., eventlog = deprecated()) ## S3 method for class 'log' cases(log, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' cases(log, ..., eventlog = deprecated()) ## S3 method for class 'activitylog' cases(log, ..., eventlog = deprecated())
cases(log, ..., eventlog = deprecated()) ## S3 method for class 'log' cases(log, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' cases(log, ..., eventlog = deprecated()) ## S3 method for class 'activitylog' cases(log, ..., eventlog = deprecated())
log |
|
... |
Other (optional) arguments passed on to methods. See |
eventlog |
cases(log)
: Construct list of cases in a log
.
cases(eventlog)
: Construct list of cases in an eventlog
.
cases(activitylog)
: Construct list of cases in a activitylog
.
Function converting the timestamps in the data frame to the appropriate format.
convert_timestamps(x, columns, format)
convert_timestamps(x, columns, format)
x |
Data.frame containing events or activities. |
columns |
A character vector with one or more names of columns to convert |
format |
The format of the timestamps in the original dataset (either ymd_hms, dmy_hms, ymd_hm, ymd, dmy, dmy, ...). To be provided without quotation marks! |
Data.frame with converted timestamps
Other Eventlog construction helpers:
assign_instance_id()
Function to detect inconsistencies in resource information between related events.
detect_resource_inconsistencies(eventlog, filter_condition)
detect_resource_inconsistencies(eventlog, filter_condition)
eventlog |
Event log object |
filter_condition |
Condition that is used to extract a subset of the activity log prior to the application of the function |
Computes the throughput times of each case. Throughput time is defined as the interval between the start of the first event and the completion of the last event.
durations( log, units = c("auto", "secs", "mins", "hours", "days", "weeks"), eventlog = deprecated() )
durations( log, units = c("auto", "secs", "mins", "hours", "days", "weeks"), eventlog = deprecated() )
log |
|
units |
|
eventlog |
A function to instantiate an object of class eventlog
by specifying a
data.frame
or tibble
and appropriate case, activity and
timestamp classifiers.
eventlog( eventlog, case_id, activity_id, activity_instance_id, lifecycle_id, timestamp, resource_id, order, validate ) ieventlog(eventlog)
eventlog( eventlog, case_id, activity_id, activity_instance_id, lifecycle_id, timestamp, resource_id, order, validate ) ieventlog(eventlog)
eventlog |
The data object to be used as event log. This can be a
|
case_id |
The case classifier of the event log. A character vector containing variable names of length 1 or more. |
activity_id |
The activity classifier of the event log. A character vector containing variable names of length 1 or more. |
activity_instance_id |
The activity instance classifier of the event log. |
lifecycle_id |
The life cycle classifier of the event log. |
timestamp |
The timestamp of the event log. Should refer to a Date or POSIXct field. |
resource_id |
The resource identifier of the event log. A character vector containing variable names of length 1 or more. |
order |
Configure how to handle sort events with equal timestamps: auto will use the order in the original data, alphabetical will sort the activity labels by alphabet, sorted will assume that the data frame is already correctly sorted and has a column '.order', providing a column name will use this column for ordering (can be numeric of character). The latter will never overrule timestamp orderings. |
validate |
When |
case_id
, activity_id
,
activity_instance_id
,lifecycle_id
,
timestamp
## Not run: data <- data.frame(case = rep("A",5), activity_id = c("A","B","C","D","E"), activity_instance_id = 1:5, lifecycle_id = rep("complete",5), timestamp = 1:5, resource = rep("resource 1", 5)) eventlog(data,case_id = "case", activity_id = "activity_id", activity_instance_id = "activity_instance_id", lifecycle_id = "lifecycle_id", timestamp = "timestamp", resource_id = "resource") ## End(Not run)
## Not run: data <- data.frame(case = rep("A",5), activity_id = c("A","B","C","D","E"), activity_instance_id = 1:5, lifecycle_id = rep("complete",5), timestamp = 1:5, resource = rep("resource 1", 5)) eventlog(data,case_id = "case", activity_id = "activity_id", activity_instance_id = "activity_instance_id", lifecycle_id = "lifecycle_id", timestamp = "timestamp", resource_id = "resource") ## End(Not run)
Create an activity log starting from an event log or regular data.frame. This function is deprecated and replaced by the function
activitylog
(for dataframe) and to_activitylog
for eventlogs.
events_to_activitylog( eventlog, case_id, activity_id, activity_instance_id, lifecycle_id, timestamp, resource_id, ... )
events_to_activitylog( eventlog, case_id, activity_id, activity_instance_id, lifecycle_id, timestamp, resource_id, ... )
eventlog |
The event log to be converted. An object of class
|
case_id |
If eventlog is data.frame, the case classifier of the event log. A character vector containing variable names of length 1 or more. |
activity_id |
If eventlog is data.frame, the activity classifier of the event log. A character vector containing variable names of length 1 or more. |
activity_instance_id |
If eventlog is data.frame, the activity instance classifier of the event log. |
lifecycle_id |
If eventlog is data.frame, the life cycle classifier of the event log. |
timestamp |
If eventlog is data.frame, the timestamp of the event log. Should refer to a Date or POSIXct field. |
resource_id |
If eventlog is data.frame, the resource identifier of the event log. A character vector containing variable names of length 1 or more. |
... |
Additional argments, i.e. for fixing resource inconsistencies |
Select first n activity instances.
first_n(log, n, eventlog = deprecated()) ## S3 method for class 'eventlog' first_n(log, n, eventlog = deprecated()) ## S3 method for class 'activitylog' first_n(log, n, eventlog = deprecated()) ## S3 method for class 'grouped_log' first_n(log, n, eventlog = deprecated())
first_n(log, n, eventlog = deprecated()) ## S3 method for class 'eventlog' first_n(log, n, eventlog = deprecated()) ## S3 method for class 'activitylog' first_n(log, n, eventlog = deprecated()) ## S3 method for class 'grouped_log' first_n(log, n, eventlog = deprecated())
log |
|
n |
|
eventlog |
first_n(eventlog)
: Select first n activity instances of an eventlog
.
first_n(activitylog)
: Select first n activity instances of an activitylog
.
first_n(grouped_log)
: Select first n activity instances of a grouped_log
.
Fix resource inconsistencies
fix_resource_inconsistencies( eventlog, filter_condition, overwrite_missings, detected_problems, details ) ## S3 method for class 'activitylog' fix_resource_inconsistencies( eventlog, filter_condition = NULL, overwrite_missings = FALSE, detected_problems = NULL, details = TRUE ) ## S3 method for class 'eventlog' fix_resource_inconsistencies( eventlog, filter_condition = NULL, overwrite_missings = FALSE, detected_problems = NULL, details = TRUE )
fix_resource_inconsistencies( eventlog, filter_condition, overwrite_missings, detected_problems, details ) ## S3 method for class 'activitylog' fix_resource_inconsistencies( eventlog, filter_condition = NULL, overwrite_missings = FALSE, detected_problems = NULL, details = TRUE ) ## S3 method for class 'eventlog' fix_resource_inconsistencies( eventlog, filter_condition = NULL, overwrite_missings = FALSE, detected_problems = NULL, details = TRUE )
eventlog |
Event log object |
filter_condition |
Condition that is used to extract a subset of the activity log prior to the application of the function |
overwrite_missings |
If events are missing, overwrite the resource if other events within activity instance are performed by single resource. Default FALSE. |
detected_problems |
If available, the problems detected that need to be fixed. If not available, the function detect_resource_inconsistenties will be called. |
details |
Show details |
fix_resource_inconsistencies(activitylog)
: activitylog Fix activitylog
fix_resource_inconsistencies(eventlog)
: eventlog Fix eventlog
Group an event log by activity identifier
group_by_activity(log)
group_by_activity(log)
log |
|
Group an event log by activity instance identifier
group_by_activity_instance(log)
group_by_activity_instance(log)
log |
|
Group an event log by case identifier
group_by_case(log)
group_by_case(log)
log |
|
Group log on identifiers
group_by_ids(log, ...) ## S3 method for class 'log' group_by_ids(log, ...)
group_by_ids(log, ...) ## S3 method for class 'log' group_by_ids(log, ...)
log |
|
... |
One or more of the following: activity_id, case_id, activity_instance_id, resource_id, lifecycle_id |
Grouped log
group_by_ids(log)
: Group log on identifiers
Group an event log by resource identifier
group_by_resource(log)
group_by_resource(log)
log |
|
Group an event log by resource and activity identifier
group_by_resource_activity(log)
group_by_resource_activity(log)
log |
|
This function returns TRUE
if x
inherits from the specified class, and FALSE
for all other objects.
is.log(x) is.eventlog(x) is.activitylog(x) is.grouped_log(x) is.grouped_eventlog(x) is.grouped_activitylog(x)
is.log(x) is.eventlog(x) is.activitylog(x) is.grouped_log(x) is.grouped_eventlog(x) is.grouped_activitylog(x)
x |
Any |
is.log
returns TRUE
if the object inherits from the log
class, otherwise FALSE
.
is.eventlog
returns TRUE
if the object inherits from the eventlog
class, otherwise FALSE
.
is.actvitylog
returns TRUE
if the object inherits from the activitylog
class, otherwise FALSE
.
is.grouped_log
returns TRUE
if the object inherits from the grouped_log
class, otherwise FALSE
.
is.grouped_eventlog
returns TRUE
if the object inherits from the grouped_eventlog
class, otherwise FALSE
.
is.grouped_activitylog
returns TRUE
if the object inherits from the grouped_activitylog
class, otherwise FALSE
.
log
,eventlog
,activitylog
,grouped_log
,grouped_eventlog
,grouped_activitylog
Select last n activity instances
last_n(log, n, eventlog = deprecated()) ## S3 method for class 'eventlog' last_n(log, n, eventlog = deprecated()) ## S3 method for class 'activitylog' last_n(log, n, eventlog = deprecated()) ## S3 method for class 'grouped_log' last_n(log, n, eventlog = deprecated())
last_n(log, n, eventlog = deprecated()) ## S3 method for class 'eventlog' last_n(log, n, eventlog = deprecated()) ## S3 method for class 'activitylog' last_n(log, n, eventlog = deprecated()) ## S3 method for class 'grouped_log' last_n(log, n, eventlog = deprecated())
log |
|
n |
|
eventlog |
last_n(eventlog)
: Select last n activity instances of an eventlog
.
last_n(activitylog)
: Select last n activity instances of an activitylog
.
last_n(grouped_log)
: Select last n activity instances of a grouped_log
.
Get the life_cycle_id of an object of class eventlog
lifecycle_id(x) ## S3 method for class 'eventlog' lifecycle_id(x) ## S3 method for class 'eventlog_mapping' lifecycle_id(x)
lifecycle_id(x) ## S3 method for class 'eventlog' lifecycle_id(x) ## S3 method for class 'eventlog_mapping' lifecycle_id(x)
x |
lifecycle_id(eventlog)
: Retrieve lifecycle identifier from eventlog
lifecycle_id(eventlog_mapping)
: Retrieve lifecycle identifier from eventlog mapping
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Retrieve a vector containing all unique lifecycle labels.
lifecycle_labels(log, eventlog = deprecated()) ## S3 method for class 'eventlog' lifecycle_labels(log, eventlog = deprecated()) ## S3 method for class 'activitylog' lifecycle_labels(log, eventlog = deprecated())
lifecycle_labels(log, eventlog = deprecated()) ## S3 method for class 'eventlog' lifecycle_labels(log, eventlog = deprecated()) ## S3 method for class 'activitylog' lifecycle_labels(log, eventlog = deprecated())
log |
|
eventlog |
lifecycle_labels(eventlog)
: Retrieve lifecycle labels from an eventlog
.
lifecycle_labels(activitylog)
: Retrieve lifecycle labels from an activitylog
.
Returns a tibble
containing a list of all life cycle types in the log,
with their absolute and relative frequency (# events).
lifecycles(log, eventlog = deprecated()) ## S3 method for class 'eventlog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'activitylog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' lifecycles(log, eventlog = deprecated())
lifecycles(log, eventlog = deprecated()) ## S3 method for class 'eventlog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'activitylog' lifecycles(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' lifecycles(log, eventlog = deprecated())
log |
|
eventlog |
lifecycles(eventlog)
: Generate lifecycle list for an eventlog
.
lifecycles(grouped_eventlog)
: Generate lifecycle list for a grouped_eventlog
.
lifecycles(activitylog)
: Generate lifecycle list for an activitylog
.
lifecycles(grouped_activitylog)
: Generate lifecycle list for an grouped_activitylog
.
Prints the mapping of an event log object.
mapping(log, eventlog = deprecated()) ## S3 method for class 'eventlog' mapping(log, eventlog = deprecated()) ## S3 method for class 'activitylog' mapping(log, eventlog = deprecated())
mapping(log, eventlog = deprecated()) ## S3 method for class 'eventlog' mapping(log, eventlog = deprecated()) ## S3 method for class 'activitylog' mapping(log, eventlog = deprecated())
log |
|
eventlog |
mapping(eventlog)
: Retrieve identifier mapping from eventlog
mapping(activitylog)
: Retrieve identifier mapping from activitylog
Returns the number of activities in an event log
n_activities(log, eventlog = deprecated()) ## S3 method for class 'log' n_activities(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_activities(log, eventlog = deprecated())
n_activities(log, eventlog = deprecated()) ## S3 method for class 'log' n_activities(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_activities(log, eventlog = deprecated())
log |
|
eventlog |
n_activities(log)
: Count the number of activities in a log
n_activities(grouped_log)
: Count the number of activities for a grouped log
Other Counters:
n_activity_instances()
,
n_cases()
,
n_events()
,
n_resources()
,
n_traces()
Returns the number of activity instances in an event log
n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'eventlog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'activitylog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' n_activity_instances(log, eventlog = deprecated())
n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'eventlog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'activitylog' n_activity_instances(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' n_activity_instances(log, eventlog = deprecated())
log |
|
eventlog |
n_activity_instances(eventlog)
: eventlog
n_activity_instances(grouped_eventlog)
: grouped_eventlog
n_activity_instances(activitylog)
: eventlog
n_activity_instances(grouped_activitylog)
: grouped_activitylog
Other Counters:
n_activities()
,
n_cases()
,
n_events()
,
n_resources()
,
n_traces()
Returns the number of cases in an event log.
n_cases(log, eventlog = deprecated()) ## S3 method for class 'log' n_cases(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_cases(log, eventlog = deprecated())
n_cases(log, eventlog = deprecated()) ## S3 method for class 'log' n_cases(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_cases(log, eventlog = deprecated())
log |
|
eventlog |
n_cases(log)
: Count number of cases in a log
.
n_cases(grouped_log)
: Count number of cases in a grouped_log
.
Other Counters:
n_activities()
,
n_activity_instances()
,
n_events()
,
n_resources()
,
n_traces()
Returns the number of events in an event log.
n_events(log, eventlog = deprecated()) ## S3 method for class 'eventlog' n_events(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' n_events(log, eventlog = deprecated()) ## S3 method for class 'activitylog' n_events(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' n_events(log, eventlog = deprecated())
n_events(log, eventlog = deprecated()) ## S3 method for class 'eventlog' n_events(log, eventlog = deprecated()) ## S3 method for class 'grouped_eventlog' n_events(log, eventlog = deprecated()) ## S3 method for class 'activitylog' n_events(log, eventlog = deprecated()) ## S3 method for class 'grouped_activitylog' n_events(log, eventlog = deprecated())
log |
|
eventlog |
n_events(eventlog)
: Count number of events in an eventlog
.
n_events(grouped_eventlog)
: Count number of events in a grouped_eventlog
.
n_events(activitylog)
: Count number of events in an activitylog
.
n_events(grouped_activitylog)
: Count number of events in an grouped_activitylog
.
Other Counters:
n_activities()
,
n_activity_instances()
,
n_cases()
,
n_resources()
,
n_traces()
Returns the number of resources in an event log
n_resources(log, eventlog = deprecated()) ## S3 method for class 'log' n_resources(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_resources(log, eventlog = deprecated())
n_resources(log, eventlog = deprecated()) ## S3 method for class 'log' n_resources(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_resources(log, eventlog = deprecated())
log |
|
eventlog |
n_resources(log)
: Count number of resources in log
n_resources(grouped_log)
: Count number of resources in grouped log
Other Counters:
n_activities()
,
n_activity_instances()
,
n_cases()
,
n_events()
,
n_traces()
Returns the number of traces in an event log
n_traces(log, eventlog = deprecated()) ## S3 method for class 'log' n_traces(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_traces(log, eventlog = deprecated())
n_traces(log, eventlog = deprecated()) ## S3 method for class 'log' n_traces(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' n_traces(log, eventlog = deprecated())
log |
|
eventlog |
n_traces(log)
: Count number of traces for eventlog
n_traces(grouped_log)
: Count number of traces for grouped eventlog
Other Counters:
n_activities()
,
n_activity_instances()
,
n_cases()
,
n_events()
,
n_resources()
Generic print function for mapping.
## S3 method for class 'eventlog_mapping' print(x, ...)
## S3 method for class 'eventlog_mapping' print(x, ...)
x |
Mapping of |
... |
Additional Arguments |
Generic print function for eventlog
## S3 method for class 'log' print(x, ...)
## S3 method for class 'log' print(x, ...)
x |
|
... |
Additional Arguments |
Construct an eventlog using an existing mapping.
re_map(x, mapping)
re_map(x, mapping)
x |
|
mapping |
An existing mapping created by the mapping function |
Get the resource classifier of an object of class eventlog
.
resource_id(x) ## S3 method for class 'eventlog' resource_id(x) ## S3 method for class 'eventlog_mapping' resource_id(x) ## S3 method for class 'activitylog' resource_id(x) ## S3 method for class 'activitylog_mapping' resource_id(x)
resource_id(x) ## S3 method for class 'eventlog' resource_id(x) ## S3 method for class 'eventlog_mapping' resource_id(x) ## S3 method for class 'activitylog' resource_id(x) ## S3 method for class 'activitylog_mapping' resource_id(x)
x |
|
resource_id(eventlog)
: Retrieve resource identifier from eventlog
resource_id(eventlog_mapping)
: Retrieve resource identifier from eventlog mapping
resource_id(activitylog)
: Retrieve resource identifier from activitylog
resource_id(activitylog_mapping)
: Retrieve resource identifier from activitylog mapping
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Retrieve a vector containing all unique resource labels
resource_labels(log, eventlog = deprecated()) ## Default S3 method: resource_labels(log, eventlog = deprecated())
resource_labels(log, eventlog = deprecated()) ## Default S3 method: resource_labels(log, eventlog = deprecated())
log |
|
eventlog |
resource_labels(default)
: Retrieve resource labels from eventlog
Returns a tibble
containing a list of all resources in the event log, with there absolute and relative frequency
resources(log, eventlog = deprecated()) ## S3 method for class 'eventlog' resources(log, eventlog = deprecated()) ## S3 method for class 'activitylog' resources(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' resources(log, eventlog = deprecated())
resources(log, eventlog = deprecated()) ## S3 method for class 'eventlog' resources(log, eventlog = deprecated()) ## S3 method for class 'activitylog' resources(log, eventlog = deprecated()) ## S3 method for class 'grouped_log' resources(log, eventlog = deprecated())
log |
|
eventlog |
resources(eventlog)
: Generate resource list for eventlog
resources(activitylog)
: Generate resource list for activitylog
resources(grouped_log)
: Compute activity frequencies
bupaR color scales
scale_fill_discrete_bupaR( guide = "legend", na.value = "grey50", name = waiver() ) scale_color_discrete_bupaR( guide = "legend", na.value = "grey50", name = waiver() ) scale_fill_continuous_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), palette = c("green", "orange") ) scale_color_continuous_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_fill_gradient_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_color_gradient_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_fill_gradient2_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), midpoint = 0 ) scale_color_gradient2_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), midpoint = 0 )
scale_fill_discrete_bupaR( guide = "legend", na.value = "grey50", name = waiver() ) scale_color_discrete_bupaR( guide = "legend", na.value = "grey50", name = waiver() ) scale_fill_continuous_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), palette = c("green", "orange") ) scale_color_continuous_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_fill_gradient_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_color_gradient_bupaR( guide = "colourbar", na.value = "grey50", name = waiver() ) scale_fill_gradient2_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), midpoint = 0 ) scale_color_gradient2_bupaR( guide = "colourbar", na.value = "grey50", name = waiver(), midpoint = 0 )
guide |
Type of legend. Use "colourbar" for continuous colour bar, or "legend" for discrete colour legend. |
na.value |
Colour to use for missing values |
name |
The name of the scale. Used as the axis or legend title. If waiver(), the default, the name of the scale is taken from the first mapping used for that aesthetic. If NULL, the legend title will be omitted. |
palette |
Color palette to be used for scale_._continuous_bupaR. Can be "green" (default) or "orange". |
midpoint |
The midpoint (in data value) of the diverging scale. Defaults to 0. |
Select identifiers from log
select_ids(log, ...) ## S3 method for class 'log' select_ids(log, ...)
select_ids(log, ...) ## S3 method for class 'log' select_ids(log, ...)
log |
|
... |
One or more of the following: activity_id, case_id, activity_instance_id, resource_id, lifecycle_id |
select_ids(log)
: Select identifiers from log
library(eventdataR) patients %>% select_ids(activity_id, case_id)
library(eventdataR) patients %>% select_ids(activity_id, case_id)
Set activity id of log
set_activity_id(log, activity_id, eventlog = deprecated()) ## Default S3 method: set_activity_id(log, activity_id, eventlog = deprecated())
set_activity_id(log, activity_id, eventlog = deprecated()) ## Default S3 method: set_activity_id(log, activity_id, eventlog = deprecated())
log |
|
activity_id |
New activity id |
eventlog |
set_activity_id(default)
: Set activity id
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Set activity instance id of log
set_activity_instance_id(log, activity_instance_id, eventlog = deprecated()) ## S3 method for class 'eventlog' set_activity_instance_id(log, activity_instance_id, eventlog = deprecated())
set_activity_instance_id(log, activity_instance_id, eventlog = deprecated()) ## S3 method for class 'eventlog' set_activity_instance_id(log, activity_instance_id, eventlog = deprecated())
log |
|
activity_instance_id |
New activity_instance id |
eventlog |
set_activity_instance_id(eventlog)
: Set activity_instance_id of eventlog
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Set case id of log
set_case_id(log, case_id, eventlog = deprecated()) ## Default S3 method: set_case_id(log, case_id, eventlog = deprecated())
set_case_id(log, case_id, eventlog = deprecated()) ## Default S3 method: set_case_id(log, case_id, eventlog = deprecated())
log |
|
case_id |
New case id |
eventlog |
set_case_id(default)
: Set case id
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Set lifecycle id of log
set_lifecycle_id(log, lifecycle_id, eventlog = deprecated()) ## Default S3 method: set_lifecycle_id(log, lifecycle_id, eventlog = deprecated())
set_lifecycle_id(log, lifecycle_id, eventlog = deprecated()) ## Default S3 method: set_lifecycle_id(log, lifecycle_id, eventlog = deprecated())
log |
|
lifecycle_id |
New lifecycle id. Can be multiple in case of activitylog |
eventlog |
set_lifecycle_id(default)
: Set lifecycle id
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Set resource id of log
set_resource_id(log, resource_id, eventlog = deprecated()) ## Default S3 method: set_resource_id(log, resource_id, eventlog = deprecated())
set_resource_id(log, resource_id, eventlog = deprecated()) ## Default S3 method: set_resource_id(log, resource_id, eventlog = deprecated())
log |
|
resource_id |
New resource id |
eventlog |
set_resource_id(default)
: Set resource id
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_timestamp()
,
timestamps()
,
timestamp()
Set timestamp of eventlog
set_timestamp(log, timestamp, eventlog = deprecated()) ## S3 method for class 'eventlog' set_timestamp(log, timestamp, eventlog = deprecated())
set_timestamp(log, timestamp, eventlog = deprecated()) ## S3 method for class 'eventlog' set_timestamp(log, timestamp, eventlog = deprecated())
log |
|
timestamp |
New timestamp |
eventlog |
set_timestamp(eventlog)
: Set timestamp of eventlog
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
timestamps()
,
timestamp()
A function to instantiate an object of class eventlog
by specifying a
data.frame
or tibble
and the minimally required case identifier, activity identifier and timestamp.
This function is superseded by the introduction of the activitylog format.
Eventlogs in this 'simple' format can be seen as log of activities, and be created with activitylog()
. If required, the resulting activity log can be transformed back to the eventlog format using to_eventlog
.
simple_eventlog( eventlog, case_id = NULL, activity_id = NULL, timestamp = NULL, resource_id = NULL, order = "auto", return_type = c("eventlog", "activitylog") ) isimple_eventlog(eventlog)
simple_eventlog( eventlog, case_id = NULL, activity_id = NULL, timestamp = NULL, resource_id = NULL, order = "auto", return_type = c("eventlog", "activitylog") ) isimple_eventlog(eventlog)
eventlog |
The data object to be used as event log. This can be a
|
case_id |
The case classifier of the event log. |
activity_id |
The activity classifier of the event log. |
timestamp |
The timestamp of the event log. |
resource_id |
The resource classifier of the event log (optional). |
order |
Configure how to handle sort events with equal timestamps: auto will use the order in the original data, alphabetical will sort the activity labels by alphabet, sorted will assume that the data frame is already correctly sorted and has a column '.order', providing a column name will use this column for ordering (can be numeric of character). The latter will never overrule timestamp orderings. |
return_type |
Whether to return eventlog (default) or activitylog object. |
eventlog
,case_id
, activity_id
,
activity_instance_id
,lifecycle_id
,
timestamp
## Not run: data <- data.frame(case = rep("A",5), activity_id = c("A","B","C","D","E"), timestamp = date_decimal(1:5)) simple_eventlog(data,case_id = "case", activity_id = "activity_id", timestamp = "timestamp") ## End(Not run)
## Not run: data <- data.frame(case = rep("A",5), activity_id = c("A","B","C","D","E"), timestamp = date_decimal(1:5)) simple_eventlog(data,case_id = "case", activity_id = "activity_id", timestamp = "timestamp") ## End(Not run)
Take a slice of activity instances from event log
slice_activities(.data, ...)
slice_activities(.data, ...)
.data |
|
... |
Slice index |
Take a slice of events from event log
slice_events(.data, ...)
slice_events(.data, ...)
.data |
|
... |
Slice index |
Standardize format of lifecycle types
standardize_lifecycle(eventlog) ## S3 method for class 'eventlog' standardize_lifecycle(eventlog)
standardize_lifecycle(eventlog) ## S3 method for class 'eventlog' standardize_lifecycle(eventlog)
eventlog |
The event log to be converted. An object of class
|
standardize_lifecycle(eventlog)
: Standardize lifecycle types for eventlog
Generic summary function for eventlog class
## S3 method for class 'eventlog' summary(object, ...) ## S3 method for class 'grouped_eventlog' summary(object, ...)
## S3 method for class 'eventlog' summary(object, ...) ## S3 method for class 'grouped_eventlog' summary(object, ...)
object |
|
... |
Ignored. |
summary(grouped_eventlog)
: Summary of grouped event log
Get the timestamp classifier of an object of class eventlog
timestamp(x) ## S3 method for class 'eventlog' timestamp(x) ## S3 method for class 'eventlog_mapping' timestamp(x) ## S3 method for class 'activitylog' timestamp(x) ## S3 method for class 'activitylog_mapping' timestamp(x)
timestamp(x) ## S3 method for class 'eventlog' timestamp(x) ## S3 method for class 'eventlog_mapping' timestamp(x) ## S3 method for class 'activitylog' timestamp(x) ## S3 method for class 'activitylog_mapping' timestamp(x)
x |
timestamp(eventlog)
: Retrieve timestamp identifier from eventlog
timestamp(eventlog_mapping)
: Retrieve timestamp identifier from eventlog mapping
timestamp(activitylog)
: Retrieve timestamp identifier from activitylog
timestamp(activitylog_mapping)
: Retrieve timestamp identifier from activitylog mapping
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamps()
Get the timestamps classifier of an object of class activitylog
timestamps(x) ## S3 method for class 'eventlog' timestamps(x) ## S3 method for class 'eventlog_mapping' timestamps(x) ## S3 method for class 'activitylog' timestamps(x) ## S3 method for class 'activitylog_mapping' timestamps(x)
timestamps(x) ## S3 method for class 'eventlog' timestamps(x) ## S3 method for class 'eventlog_mapping' timestamps(x) ## S3 method for class 'activitylog' timestamps(x) ## S3 method for class 'activitylog_mapping' timestamps(x)
x |
Object of class |
timestamps(eventlog)
: Retrieve timestamp identifier from eventlog
timestamps(eventlog_mapping)
: Retrieve timestamp identifier from eventlog mapping
timestamps(activitylog)
: Retrieve timestamp identifier from activitylog
timestamps(activitylog_mapping)
: Retrieve timestamp identifier from activitylog mapping
Other Classifiers:
activity_id()
,
activity_instance_id()
,
case_id()
,
lifecycle_id()
,
resource_id()
,
set_activity_id()
,
set_activity_instance_id()
,
set_case_id()
,
set_lifecycle_id()
,
set_resource_id()
,
set_timestamp()
,
timestamp()
Convert eventlog object to activitylog object.
to_activitylog(eventlog)
to_activitylog(eventlog)
eventlog |
Object of class |
Convert activitylog to eventlog
to_eventlog(activitylog) ## S3 method for class 'activitylog' to_eventlog(activitylog) ## S3 method for class 'grouped_activitylog' to_eventlog(activitylog)
to_eventlog(activitylog) ## S3 method for class 'activitylog' to_eventlog(activitylog) ## S3 method for class 'grouped_activitylog' to_eventlog(activitylog)
activitylog |
Object of class |
to_eventlog(activitylog)
: Convert activitylog to eventlog
to_eventlog(grouped_activitylog)
: Convert grouped activitylog to grouped eventlog
Construct trace list
trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'activitylog' trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' trace_list(log, ..., eventlog = deprecated())
trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'activitylog' trace_list(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' trace_list(log, ..., eventlog = deprecated())
log |
|
... |
Other arguments. Currently not used. |
eventlog |
trace_list(eventlog)
: Construct trace list for event log
trace_list(activitylog)
: Construct trace list for activity log
trace_list(grouped_log)
: Construct list of traces for grouped log
traces
computes the different activity sequences of an event log
together with their absolute and relative frequencies.
Activity sequences are based on the start timestamp of activities.
traces(log, ..., eventlog = deprecated()) ## S3 method for class 'log' traces(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' traces(log, ..., eventlog = deprecated())
traces(log, ..., eventlog = deprecated()) ## S3 method for class 'log' traces(log, ..., eventlog = deprecated()) ## S3 method for class 'grouped_log' traces(log, ..., eventlog = deprecated())
log |
|
... |
Deprecated arguments |
eventlog |
traces(log)
: Construct traces list for eventlog
traces(grouped_log)
: Construct list of traces for grouped log
Remove groups from event log
ungroup_eventlog(log) ## S3 method for class 'eventlog' ungroup_eventlog(log) ## S3 method for class 'grouped_log' ungroup_eventlog(log)
ungroup_eventlog(log) ## S3 method for class 'eventlog' ungroup_eventlog(log) ## S3 method for class 'grouped_log' ungroup_eventlog(log)
log |
Eventlog |
ungroup_eventlog(eventlog)
: Remove groups from event log
ungroup_eventlog(grouped_log)
: Remove groups from log
.