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)
}
gertjanssenswillen/edeaR documentation built on July 22, 2019, 7:08 p.m.