succession: Succession

View source: R/succession.R

successionR Documentation

Succession

Description

Check for succession between two activities.

succession checks the bi-directional execution order of activity_a and activity_b, i.e., both response and precedence relations have to hold: every A has to be (eventually) followed by B, and there has to be an A before every B. For example, the trace [A,C,A,B,B] satisfies the succession relation.

Usage

succession(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 Ordering rules: ends(), precedence(), responded_existence(), response(), starts()

Examples

library(bupaR)
library(eventdataR)

# Blood test should always happen before a MRI Scan,
# and both should happen when one of them happens.
patients %>%
 check_rule(succession("Blood test","MRI SCAN"))


processcheckR documentation built on Oct. 3, 2022, 5:05 p.m.