and {processcheckR} | R Documentation |
AND
Description
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.
Usage
and(activity_a, activity_b)
Arguments
activity_a |
|
activity_b |
|
See Also
Other Exclusiveness rules:
xor()
Examples
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"))
[Package processcheckR version 0.1.4 Index]