Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

check_rule

Check declarative rules.


Description

This function can be used to check rules on event data. It needs an event log and a rule. Rules can be made with the following functions: absent(), and(), contains(), contains_between(), contains_exactly(), ends(), precedence(), response(), responded_existence(), starts(), succession(), xor().

Usage

check_rule(eventlog, rule, label = NULL)

Arguments

eventlog

Eventlog object

rule

A rule create by a rule function.

label

Optionally, the variable name under which the result of the rule should be stored.

Value

An annotated event log, where a new column indicates whether the rule holds or not. The name of the new column can optionally be set using the "label" argument.

Examples

library(bupaR)
library(eventdataR)

# check whether MRI Scan is preceded by Blood test.
patients %>%
check_rule(precedence("Blood test","MRI SCAN"))

processcheckR

Rule-Based Conformance Checking of Business Process Event Data

v0.1.3
MIT + file LICENSE
Authors
Gert Janssenswillen [aut, cre]
Initial release
2020-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.