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.

gte(x)

# S4 method for integer
gte(x)

# S4 method for numeric
gte(x)

# S4 method for Date
gte(x)

Arguments

x

Comparison bound (integer, numeric, or Date).

Value

An opAttribute for use inside attribute constructor functions.

See also

lt, gt, lte, eq, bt

Examples

# Age 18 or older
conditionOccurrence(cs(1L, name = "test"), age(gte(18L)))
#> <Capr ConditionOccurrence Query> test