Business Process Analytics in R
Gert Janssenswillen
Creator of bupaR
log %>%
group_by_case() %>%
mutate(total_cost = sum(cost, na.rm = T)
log %>%
group_by_case %>%
mutate(total_cost = sum(cost, na.rm = T) %>%
mutate(impact = case_when(cost <= 1000 ~ "Low",
cost <= 5000 ~ "Medium",
T ~ "High"))
log %>%
group_by_case %>%
mutate(refund_made = any(str_detect(activity, "Pay Claim")))
Adding information about a case to the original data
Adding information about activities
log %>%
throughput_time(level = "case", units = "days", append = TRUE)
log %>%
throughput_time(level = "case", units = "days", append = TRUE) %>%
mutate(on_time = processing_time_case <= 7)
Business Process Analytics in R