Skip to contents

Converts R expressions into PostgREST filter format. Supports ==, !=, >, <, >=, <=, %in%, is.na(), and !is.na().

Usage

lt_filter(...)

Arguments

...

R filter expressions (e.g., col == "value", col %in% c("a", "b")).

Value

A named list of filter conditions for passing to lt_fetch().

Examples

lt_filter(lernzmp_id == "LID40188")
#> $lernzmp_id
#> [1] "eq.LID40188"
#> 
lt_filter(depth >= 10, lernzmp_id %in% c("LID40188", "LID40189"))
#> $depth
#> [1] "gte.10"
#> 
#> $lernzmp_id
#> [1] "in.(LID40188,LID40189)"
#>