Check if activity is present (contained) in a case for exactly n times
This rules examines whether the supplied activity is present in a case for an exact number of times.
contains_exactly(activity, n = 1)
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. |
Other Declarative Rules:
absent()
,
and()
,
contains_between()
,
contains()
,
ends()
,
precedence()
,
responded_existence()
,
response()
,
starts()
,
succession()
,
xor()
library(bupaR) library(eventdataR) # Each patient should have exactly one registration activity instance. patients %>% check_rule(contains_exactly("Registration", n = 1))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.