R/filter_throughput_time_percentile.R

Defines functions filter_throughput_time_percentile

filter_throughput_time_percentile <- function(eventlog,
											  percentage,
											  reverse) {

	case_selection <- eventlog %>%
		throughput_time("case") %>%
		arrange(throughput_time) %>%
		slice(1:ceiling(n()*percentage)) %>%
		pull(1)

	filter_case(eventlog, case_selection, reverse)
}

Try the edeaR package in your browser

Any scripts or data that you put into this service are public.

edeaR documentation built on April 27, 2023, 9:07 a.m.