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

absent

Check if an activity is absent from a case


Description

The 'absent' rule can be used to check whether an activity is absent in a case or not. The 'n' parameter can be configured to create a different level of _absence_. When n = 0, an activity is not allowed to occur even a single time. The maximum number of times it is allowed to occur is 'n'.

Usage

absent(activity, n = 0)

Arguments

activity

The activity to check. Character vector of length one.

n

n is the allowed number of occurences of the activity. E.g. n = 0 means the activity should be absent, n = 1 means it is allowed to occur once.

See Also

Examples

library(bupaR)
library(eventdataR)

# Check for which patients the activity "MRI SCAN" is absent.
patients %>%
check_rule(absent("MRI SCAN"))

# Check for which patients the activity "Blood test"
# occurs maximum a single time, but not 2 times or more.
patients %>%
check_rule(absent("Blood test", n = 1))

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.