Learn R Programming

edeaR (version 0.6.0)

activity_presence: Metric: Activity Presence

Description

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

Usage

activity_presence(eventlog)

Arguments

eventlog

The event log to be used. An object of class eventlog.

Examples

Run this code
# 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)

# }

Run the code above in your browser using DataLab