detect_incorrect_activity_names {daqapo}R Documentation

Detect incorrect activity names

Description

Function returning the incorrect activity labels in the log as indicated by the user. If details are requested, the entire activity log's rows containing incorrect activities are returned.

Usage

detect_incorrect_activity_names(
  activitylog,
  allowed_activities,
  details,
  filter_condition
)

Arguments

activitylog

The activity log

allowed_activities

Vector with correct activity labels. If NULL, user input will be asked.

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 having incorrect activity labels

Examples


data("hospital_actlog")
detect_incorrect_activity_names(activitylog = hospital_actlog,
     allowed_activities = c(
         "Registration",
         "Triage",
         "Clinical exam",
         "Treatment",
         "Treatment evaluation"))


[Package daqapo version 0.3.2 Index]