R/resource_specialisation_activity.R

Defines functions resource_specialisation_activity

resource_specialisation_activity <- function(log) {

	absolute <- NULL
	relative <- NULL

	log %>%
		distinct(!!activity_id_(log), !!resource_id_(log)) %>%
		group_by(!!activity_id_(log)) %>%
		summarize(absolute = n()) %>%
		mutate(relative = absolute/n_resources(log))
}

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.