activity_presence: Metric: Activity Presence

Description Usage Arguments Details Methods (by class) References Examples

View source: R/activity_presence.R

Description

Calculates for each activity type in what percentage of cases it is present.

Usage

1
2
3
4
5
6
7
8
9
activity_presence(eventlog, append, append_column, sort, ...)

## S3 method for class 'eventlog'
activity_presence(eventlog, append = F,
  append_column = "absolute", sort = TRUE, ...)

## S3 method for class 'grouped_eventlog'
activity_presence(eventlog, append = F,
  append_column = "absolute", sort = TRUE, ...)

Arguments

eventlog

The dataset to be used. Should be a (grouped) eventlog object. eventlog.

append

Logical, indicating whether to append results to original event log. Ignored when level is log or trace.

append_column

Which of the output columns to append to log, if append = T. Default column depends on chosen level.

sort

Sort output on count. Defaults to TRUE. Only for levels with frequency count output.

...

Deprecated arguments

Details

An indication of variance can be the presence of the activities in the different cases. This metric shows for each activity the absolute number of cases in which each activity occurs together with its relative presence.

Methods (by class)

References

Swennen, M. (2018). Using Event Log Knowledge to Support Operational Exellence Techniques (Doctoral dissertation). Hasselt University.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 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))

log <- bupaR::eventlog(data,case_id = "case",
activity_id = "activity_id",
activity_instance_id = "activity_instance_id",
lifecycle_id = "lifecycle_id",
timestamp = "timestamp",
resource_id = "resource")

activity_presence(log)

## End(Not run)

gertjanssenswillen/edeaR documentation built on July 22, 2019, 7:08 p.m.