R/resource_labels.R

Defines functions resource_labels.default resource_labels

Documented in resource_labels resource_labels.default

#' @title Get vector of resource labels
#' @description Retrieve a vector containing all unique resource labels
#' @inheritParams act_collapse
#' @export
resource_labels <- function(log, eventlog = deprecated()) {
	UseMethod("resource_labels")
}

#' @describeIn resource_labels Retrieve resource labels from eventlog
#' @export
resource_labels.default <- function(log, eventlog = deprecated()) {

	log <- lifecycle_warning_eventlog(log, eventlog)

	unique(log[[resource_id(log)]])
}

Try the bupaR package in your browser

Any scripts or data that you put into this service are public.

bupaR documentation built on May 29, 2024, 7:46 a.m.