Provides summary statistics about the frequency of activity types at the level of log, traces, cases, activity types.
Usage
activity_frequency(
log,
level = c("log", "trace", "activity", "case"),
append = deprecated(),
append_column = NULL,
sort = TRUE,
eventlog = deprecated()
)
# S3 method for class 'eventlog'
activity_frequency(
log,
level = c("log", "trace", "activity", "case"),
append = deprecated(),
append_column = NULL,
sort = TRUE,
eventlog = deprecated()
)
# S3 method for class 'grouped_eventlog'
activity_frequency(
log,
level = c("log", "trace", "activity", "case"),
append = deprecated(),
append_column = NULL,
sort = TRUE,
eventlog = deprecated()
)
# S3 method for class 'activitylog'
activity_frequency(
log,
level = c("log", "trace", "activity", "case"),
append = deprecated(),
append_column = NULL,
sort = TRUE,
eventlog = deprecated()
)
# S3 method for class 'grouped_activitylog'
activity_frequency(
log,
level = c("log", "trace", "activity", "case"),
append = deprecated(),
append_column = NULL,
sort = TRUE,
eventlog = deprecated()
)
Arguments
- log
log
: Object of classlog
or derivatives (grouped_log
,eventlog
,activitylog
, etc.).- level
character
(default"log"
): Level of granularity for the analysis:"log"
(default),"trace"
,"case"
, or"activity"
. For more information, seevignette("metrics", "edeaR")
and 'Details' below.- append
logical
(defaultFALSE
) : The argumentsappend
andappend_column
have been deprecated in favour ofaugment
.
Indicating whether to append results to original log. Ignored when level is"log"
or"trace"
.- append_column
The arguments
append
andappend_column
have been deprecated in favour ofaugment
.
Which of the output columns to append to log, ifappend = TRUE
. Default column depends on chosen level.- sort
logical
(defaultTRUE
): Sort output on count. Only for levels with frequency count output.- eventlog
Details
Argument level
has the following options:
At
log
level, this metric shows the summary statistics of the frequency of activities throughout the complete log.On
case
level, this metric shows the absolute and relative number of times the different activity types occur in each case. The absolute number shows the number of distinct activity types that occur in each of the cases. The relative number is calculated based on the total activity executions in the case.On
trace
level, this metric presents the absolute and relative number of times a specific activity type occurs in each trace.On
activity
level, this metric provides the absolute and relative frequency of a specific activity in the complete log.
Methods (by class)
activity_frequency(eventlog)
: Computes the activity frequency for aneventlog
.activity_frequency(grouped_eventlog)
: Computes the activity frequency for agrouped_eventlog
.activity_frequency(activitylog)
: Computes the activity frequency for anactivitylog
.activity_frequency(grouped_activitylog)
: Computes the activity frequency for agrouped_activitylog
.
References
Swennen, M. (2018). Using Event Log Knowledge to Support Operational Exellence Techniques (Doctoral dissertation). Hasselt University.
See also
Other metrics:
activity_presence()
,
end_activities()
,
idle_time()
,
number_of_repetitions()
,
number_of_selfloops()
,
number_of_traces()
,
processing_time()
,
resource_frequency()
,
resource_involvement()
,
resource_specialisation()
,
start_activities()
,
throughput_time()
,
trace_coverage()
,
trace_length()