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.
Usage
and(activity_a, activity_b)
Arguments
activity_a
character: Activity A. This should be an activity of the log supplied to check_rule.
activity_b
character: Activity B. This should be an activity of the log supplied to check_rule.
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"))