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

contains_exactly

Check if activity is present (contained) in a case for exactly n times


Description

This rules examines whether the supplied activity is present in a case for an exact number of times.

Usage

contains_exactly(activity, n = 1)

Arguments

activity

Activity too check. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'.

n

The exact number of times the activity should be present.

See Also

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

Examples

library(bupaR)
library(eventdataR)

# Each patient should have exactly one registration activity instance.

patients %>%
check_rule(contains_exactly("Registration", 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.