detect_time_anomalies {daqapo} | R 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)
[Package daqapo version 0.3.2 Index]