Learn R Programming

daqapo (version 0.3.2)

detect_time_anomalies: Detect time anomalies

Description

Function detecting time anomalies, which can refer to activities with negative or zero duration

Usage

detect_time_anomalies(
  activitylog,
  anomaly_type = c("both", "negative", "zero"),
  details = TRUE,
  filter_condition = NULL
)

Value

activitylog containing the rows of the original activity log for which a negative or zero duration is detected, together with the duration value and whether it constitutes a zero or negative duration

Arguments

activitylog

The activity log

anomaly_type

Type of anomalies that need to be detected (either "negative", "zero" 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

Examples

Run this code
# \donttest{
data("hospital_actlog")
detect_time_anomalies(activitylog = hospital_actlog)
# }

Run the code above in your browser using DataLab