Function to construct a group where at least some of the criteria or groups must be satisfied

withAtLeast(x, ...)

Arguments

x

an integer specifying the number of criteria or groups that must be satisfied

...

a set of criteria or groups

Value

an S4 group class specifying a bundle of criteria that at least x be satisfied in context of the cohort definition