R/resource_frequency_log.R

Defines functions resource_frequency_log

resource_frequency_log <- function(log) {

	freq <- NULL

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

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

	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.