and: Check for co-existence of two activities

Description Usage Arguments See Also Examples

View source: R/and.R

Description

The'and' 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

1
and(activity_a, activity_b)

Arguments

activity_a

Activity A. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'.

activity_b

Activity B. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'.

See Also

Other Declarative Rules: absent, contains_between, contains_exactly, contains, ends, precedence, responded_existence, response, starts, succession, xor

Examples

1
2
3
4
5
6
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"))

gertjanssenswillen/processcheckR documentation built on July 31, 2019, 9:34 a.m.