R/resource_specialisation_log.R

Defines functions resource_specialisation_log

resource_specialisation_log <- function(eventlog) {

	freq <- NULL

	eventlog %>%
		group_by(!!resource_id_(eventlog), !!activity_id_(eventlog)) %>%
		summarize() %>%
		summarize(freq = n()) -> raw

	raw %>%
		pull(freq) %>%
		summary_statistics() -> output

	attr(output, "raw") <- raw

	return(output)

}
gertjanssenswillen/edeaR documentation built on July 22, 2019, 7:08 p.m.