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

contains_between

Check if activity is present (contained) in a case between min and max number of times


Description

This rules examines whether the supplied activity is present in a case for a certain interval of times. The arguments 'min' and 'max' can be used to specify the allowed interval of occurences.

Usage

contains_between(activity, min = 1, max = 1)

Arguments

activity

Activity too check. Character vector of length one. This should be an activity of the event log supplied with 'check_rule'

min

The minimum number of times the activity should be present.

max

The maximum number of times the activity should be present.

See Also

Other Declarative Rules: absent(), and(), contains_exactly(), contains(), ends(), precedence(), responded_existence(), response(), starts(), succession(), xor()

Examples

library(bupaR)
library(eventdataR)


# A patients should have between 0 and 4 blood tests (including 0 and 4).
patients %>%
check_rule(contains_between("Blood test", min = 0, max = 4))

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.