OpeningAny-class: 'OpeningAny'

OpeningAny-classR Documentation

OpeningAny

Description

[Experimental]

OpeningAny combines multiple Opening objects using OR logic. A backfill cohort is opened if ANY opening criteria in the list are satisfied. This can also be created using the | operator.

Usage

OpeningAny(...)

.DefaultOpeningAny()

Arguments

...

(Opening) opening objects to combine with OR logic.

Slots

open_list

(list)
a list of Opening objects to be combined with OR logic.

Note

Typically, end users will not use the .DefaultOpeningAny() function.

See Also

Opening, OpeningAll, OpeningList.

Examples

# Create two opening criteria
opening1 <- OpeningMinDose(min_dose = 10)
opening2 <- OpeningMinCohorts(min_cohorts = 3)

# Combine them with OR logic: at least one must be satisfied
opening_any <- OpeningAny(opening1, opening2)
print(opening_any)

# Alternative: use the | operator
opening_any_alt <- opening1 | opening2
print(opening_any_alt)

crmPack documentation built on July 5, 2026, 9:06 a.m.