Creating the event log
The final hurdle before we can start the analysis is to create the event log object.
This exercise is part of the course
Business Process Analytics in R
Exercise instructions
- To create a
case_id
,paste()
together the combination ofquotation_id
andsales_order_id
. - Use
eventlog()
to map the variables onto event data components.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create the eventlog object
otc_event_log <- otc %>%
mutate(case_id = paste(___ , sep = "-")) %>%
eventlog(
case_id = ___,
activity_id = ___,
activity_instance_id = ___,
timestamp = "timestamp",
resource_id = "resource",
lifecycle_id = "lifecycle"
)