detect_unique_values {daqapo}R Documentation

Search for unique values / distinct combinations

Description

Function that lists all distinct combinations of the given columns in the activity log

Usage

detect_unique_values(activitylog, column_labels, filter_condition = NULL)

Arguments

activitylog

The activity log

column_labels

The names of columns in the activity log for which you want to show the different combinations found in the log. If only one column is provided, this results in a list of unique values in that column.

filter_condition

Condition that is used to extract a subset of the activity log prior to the application of the function

Value

activitylog containing the unique (distinct) values (combinations) in the indicated column(s)

Examples


data("hospital_actlog")
detect_unique_values(activitylog = hospital_actlog,
     column_labels = "activity")
detect_unique_values(activitylog = hospital_actlog,
     column_labels = c("activity", "originator"))


[Package daqapo version 0.3.2 Index]