Learn R Programming

daqapo (version 0.3.2)

detect_incomplete_cases: Detect incomplete cases

Description

Function detecting incomplete cases in terms of the activities that need to be recorded for a case. The function only checks the presence of activities, not the completeness of the rows describing the activity executions.

Usage

detect_incomplete_cases(activitylog, activities, details, filter_condition)

Value

tbl_df providing an overview of the traces (i.e. the activities executed for a particular case) in which the specified activities are not present, together with its occurrence frequency and cases having this trace

Arguments

activitylog

The activity log

activities

A vector of activity names which should be present for a case

details

Boolean indicating wheter details of the results need to be shown

filter_condition

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

Examples

Run this code
# \donttest{
data("hospital_actlog")
detect_incomplete_cases(activitylog = hospital_actlog,
     activities = c("Registration","Triage","Clinical exam","Treatment","Treatment evaluation"))
# }

Run the code above in your browser using DataLab