soql_simple_filter {soql} | R Documentation |
This function adds a parameter to the URL to filter records in a simple way, using equality only. For more advanced filters, see soql_where
.
soql_simple_filter(soql_list, column, value)
soql_list |
The |
column |
The column name to filter by. |
value |
The value the column must be equal to. |
Returns a new soql
object, with a filter parameter added, for use in other functions.
Documentation on the SODA website
if (require(magrittr)) {
# With pipes
my_url <- soql() %>%
soql_simple_filter("height", 50) %>%
as.character()
} else {
# Without pipes
soql_chain <- soql()
soql_chain <- soql_simple_filter(soql_chain, "height", 50)
my_url <- as.character(soql_chain)
}