R/resource_specialisation_resource.R

Defines functions resource_specialisation_resource

resource_specialisation_resource <- function(log) {
	absolute <- NULL
	relative <- NULL

	log %>%
		distinct(!!resource_id_(log), !!activity_id_(log)) %>%
		group_by(!!resource_id_(log)) %>%
		summarize(absolute = n()) %>%
		mutate(relative = absolute/n_activities(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.