Utility Functions for numeric operator selection
Source:R/suso_gql_transformers_numeric.R
transformers.numeric.Rd
Can be used in filters ("where") for operator selection. If none is selected, operator always defaults to `eq()`. The functions bellow are valid for the corresponding inputs ComparableInt64OperationFilterInput and ComparableNullableOfInt32OperationFilterInput.
Usage
eq(value_set)
neq(value_set)
inbetw(value_set)
ninbetw(value_set)
gt(value_set)
ngt(value_set)
gte(value_set)
ngte(value_set)
lt(value_set)
nlt(value_set)
lte(value_set)
nlte(value_set)
Details
Also see the susoop_num selector list, which allows you, to just select the function from a named list.
Functions
eq()
: equalneq()
: not equalinbetw()
: inbetween (requires numeric vector with upper and lower bound, i.e. c(1, 5))ninbetw()
: not inbetween (requires numeric vector with upper and lower bound, i.e. c(1,5))gt()
: greater thanngt()
: not greater thangte()
: greater than or equalngte()
: not greater than or equallt()
: lower thannlt()
: not lower thanlte()
: lower than or equalnlte()
: not lower than or equal
Examples
# set filter equal to 0
eq(0)
#> $eq
#> [1] 0
#>
# set filter to a value from 0 to 5
inbetw(c(0, 5))
#> $`in`
#> [1] 0 5
#>