xor {processcheckR} | R Documentation |
XOR
Description
Check for exclusiveness of two activities.
If activity_a
exists, activity_b
should not exist, and vice versa.
Usage
xor(activity_a, activity_b)
Arguments
activity_a |
|
activity_b |
|
See Also
Other Exclusiveness rules:
and()
Examples
library(bupaR)
library(eventdataR)
# A patient should not receive both an X-Ray and MRI Scan.
patients %>%
check_rule(xor("X-Ray","MRI SCAN"))
[Package processcheckR version 0.1.4 Index]