detect_inactive_periods {daqapo}R Documentation

Detect inactive periods

Description

Function detecting inactive periods, i.e. periods of time in which no activity executions/arrivals are recorded in the activity log

Usage

detect_inactive_periods(
  activitylog,
  threshold,
  type,
  timestamp,
  start_activities,
  details,
  filter_condition
)

Arguments

activitylog

The activity log

threshold

Threshold after which a period without activity executions/arrivals is considered as an inactive period (expressed in minutes)

type

Type of inactive periods you want to detect. "arrivals" will look for periods without new cases arriving. "activities" will look for periods where no activities occur.

timestamp

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

start_activities

List of activity labels marking the first activity in the process. When specified, an inactive period only occurs when the time between two consecutive arrivals exceeds the specified threshold (arrival is proxied by the activity/activities specified in this argument).

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

tbl_df providing an overview of the start and end of the inactive periods that have been detected, together with the length of the inactive period

Examples


data("hospital_actlog")
detect_inactive_periods(activitylog = hospital_actlog,threshold = 30)


[Package daqapo version 0.3.2 Index]