contains_exactly: Check if activity is present (contained) in a case for...

Description Usage Arguments See Also Examples

View source: R/contains_exactly.R

Description

This rules examines whether the supplied activity is present in a case for an exact number of times.

Usage

1
contains_exactly(activity, n = 1)

Arguments

activity

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

n

The exact number of times the activity should be present.

See Also

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

Examples

1
2
3
4
5
6
7
library(bupaR)
library(eventdataR)

# Each patient should have exactly one registration activity instance.

patients %>%
check_rule(contains_exactly("Registration", n = 1))

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