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

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.

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]