Eating habits
A group of 24 people was asked to record its eating activities for a short amount of time. In total, seven different activities were defined:
- preparing and eating breakfast
- preparing and eating lunch
- preparing and eating dinner
- eating a snack
Let's have a look at the time aspect of this eating process, for which the data is available in the eat_patterns
object.
This exercise is part of the course
Business Process Analytics in R
Exercise instructions
- To which meal did the subjects dedicate the most time? Draw a process map using the
performance()
profile, with median time intervals expressed in hours. - For each activity: does there exist a lot of variation in the active time spent? Use the
processing_time()
metric with the appropriate level and express in a plot. - Draw a dotted chart which places the activities along the time of day (
"relative_day"
) and sorts cases based on their first activity ("start_day"
).
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Draw a process map of median performance in hours
eat_patterns %>%
process_map(type = ___(FUN = ___, units = ___))
eat_patterns %>%
# Calculate variation in processing times of activity durations
___(level = ___) %>%
# Plot it
___()
# Draw a dotted chart of relative data sorted by start day
eat_patterns %>%
dotted_chart(x = ___, sort = ___, units = "secs")