R/filter_processing_time_percentile.R

Defines functions filter_processing_time_percentile

filter_processing_time_percentile <- function(log, percentage, reverse) {

	log %>%
		processing_time("case") %>%
		arrange(processing_time) %>%
		slice(1:ceiling(n()*percentage)) %>%
		pull(1) -> case_selection

	filter_case(log, cases = case_selection, reverse = 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.