build_filter | R Documentation |
Build filter from tribble
build_filter(filters, global_operator = "and")
filters |
tribble with columns
Possible values for operator:
|
global_operator |
"and" or "or" |
filter json encoded to feed to build_query
filters <- tibble::tribble( ~column, ~operator, ~value, "event_url", "matches", "Zamperoni", "event_url", "matches", "-1[34]" ) # With optional transformation filters <- tibble::tribble( ~column, ~operator, ~value, ~transformation, "event_url", "starts_with", "/medien", "to_path", "event_url", "matches", "-1[34]", NULL ) filters <- build_filter(filters, "and") # If values of two or more different types are used use lists filters <- tibble::tribble( ~column, ~operator, ~value, "device_type", "eq", list(0), "location_country_name", "eq", list("DE") ) # This also works for transformation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.