Builds a range comparison for use inside attribute functions such as age, valueAsNumber, startDate, etc. Accepts integer, numeric, or Date inputs.

bt(x, y)

# S4 method for integer
bt(x, y)

# S4 method for numeric
bt(x, y)

# S4 method for Date
bt(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

Examples

# Age between 18 and 65
conditionOccurrence(cs(1L, name = "test"), age(bt(18L, 65L)))
#> <Capr ConditionOccurrence Query> test