View source: R/contains_exactly.R
contains_exactly | R Documentation |
Check if the specified activity is present (contained) in a case for exactly n
times.
The contains_exactly
rule examines whether the supplied activity
is present in a case for an exact number of n
times.
contains_exactly(activity, n = 1)
activity |
|
n |
|
Other Cardinality rules:
absent()
,
contains_between()
,
contains()
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.