powered by
Check for exclusiveness of two activities.
If activity_a exists, activity_b should not exist, and vice versa.
activity_a
activity_b
xor(activity_a, activity_b)
character: Activity A. This should be an activity of the log supplied to check_rule.
character
check_rule
character: Activity B. This should be an activity of the log supplied to check_rule.
Other Exclusiveness rules: and()
and()
library(bupaR) library(eventdataR) # A patient should not receive both an X-Ray and MRI Scan. patients %>% check_rule(xor("X-Ray","MRI SCAN"))
Run the code above in your browser using DataLab