Builds a comparison operator for use inside attribute functions such as age,
valueAsNumber, startDate, etc.
Accepts integer, numeric, or Date inputs; returns the matching opAttribute type.
lt(x)
# S4 method for integer
lt(x)
# S4 method for numeric
lt(x)
# S4 method for Date
lt(x)Comparison bound (integer, numeric, or Date).
An opAttribute for use inside attribute constructor functions.
# Patients under 18
conditionOccurrence(cs(1L, name = "test"), age(lt(18L)))
#> <Capr ConditionOccurrence Query> test