R/resource_specialisation_log.R

Defines functions resource_specialisation_log

resource_specialisation_log <- function(log) {

	freq <- NULL

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

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

	attr(output, "raw") <- raw

	return(output)

}

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.