Learn R Programming

daqapo (version 0.3.2)

detect_activity_order_violations: Detect activity order violations

Description

Function detecting violations in activity order. Having additional or less activity types than those specified in activity_order is no violation, but the activity types present should occur in the specified order, and only once.

Usage

detect_activity_order_violations(
  activitylog,
  activity_order,
  timestamp,
  details,
  filter_condition
)

# S3 method for activitylog detect_activity_order_violations( activitylog, activity_order, timestamp = c("both", "start", "complete"), details = TRUE, filter_condition = NULL )

Value

tbl_df providing an overview of detected activity orders which violate the specified activity order

Arguments

activitylog

The activity log

activity_order

Vector expressing the activity order that needs to be checked (using activity names)

timestamp

Type of timestamp that needs to be taken into account in the analysis (either "start", "complete" or "both)

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

Methods (by class)

  • activitylog: Detect activity order_violations in activity log.

Examples

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

Run the code above in your browser using DataLab