| and | R Documentation |
Check for co-existence of two activities.
Theand rule checks whether two activities both occur in a case (or are both absent).
If activity_a exists, activity_b should also exist, and vice versa.
and(activity_a, activity_b)
activity_a |
|
activity_b |
|
Other Exclusiveness rules:
xor()
library(bupaR)
library(eventdataR)
# Check that if a patients is registered, he's also checked-out, and vice versa.
patients %>%
check_rule(and("Registration","Check-out"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.