detect_time_anomalies: Detect time anomalies

View source: R/detect_time_anomalies.R

detect_time_anomaliesR Documentation

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
)

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

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

Examples


data("hospital_actlog")
detect_time_anomalies(activitylog = hospital_actlog)


daqapo documentation built on July 14, 2022, 9:07 a.m.