Builds an exclusion range comparison for use inside attribute functions. Accepts integer, numeric, or Date inputs.

nbt(x, y)

# S4 method for integer
nbt(x, y)

# S4 method for numeric
nbt(x, y)

# S4 method for Date
nbt(x, y)

Arguments

x

Lower bound (integer, numeric, or Date).

y

Upper bound; must match type of x.

Value

An opAttribute for use inside attribute constructor functions.

See also

bt, lt, gt

Examples

# Age outside 18-65
conditionOccurrence(cs(1L, name = "test"), age(nbt(18L, 65L)))
#> <Capr ConditionOccurrence Query> test