Nothing
throughput_time_case <- function(log, units, work_schedule = NULL) {
s <- NULL
elapsed <- NULL
timestamp_classifier <- NULL
case_classifier <- case_id(log)
colnames(log)[colnames(log) == timestamp(log)] <- "timestamp_classifier"
colnames(log)[colnames(log) == case_classifier] <- "case_classifier"
e <- log %>%
as.data.table %>%
.[, .(s = min(timestamp_classifier),
e = max(timestamp_classifier)), .(case_classifier)]
colnames(e)[colnames(e) == "case_classifier"] <- case_classifier
intervals <- as.data.frame(e)
if(is.null(work_schedule)) {
intervals %>%
mutate(throughput_time = difftime(e, s, units = units)) %>%
select(-s, -e) -> output
} else {
calculate_work_schedule_times(intervals, work_schedule, units) %>%
select(-s, -e) %>%
rename(throughput_time = elapsed) -> output
}
attr(output, "units") <- attr(output[["throughput_time"]], "units")
return(output)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.