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

withAtMost(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 most x be satisfied in context of the cohort definition