Description Usage Arguments See Also Examples
View source: R/contains_exactly.R
This rules examines whether the supplied activity is present in a case for an exact number of times.
1 | 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
1 2 3 4 5 6 7 | library(bupaR)
library(eventdataR)
# Each patient should have exactly one registration activity instance.
patients %>%
check_rule(contains_exactly("Registration", n = 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.