query-condition | R Documentation |
Condition is two-argument function such as '|' or '&' used to combine pair of rules.
queryCondition(method)
setQueryConditions(..., .queryBuilderConfig = queryBuilderConfig)
listQueryConditions(.queryBuilderConfig = queryBuilderConfig, print = TRUE)
default_conditions
method |
R function of two parameters that is used to combine a pair of rules. |
... |
Name-value pairs defining condition name and method respectively.
Should be defined with usage of |
.queryBuilderConfig |
R6 class object storing query configuration. See queryBuilderConfigClass. |
print |
Should the list of operators be printed into console? |
An object of class list
of length 2.
queryCondition
: defines condition method.
setQueryConditions
:
is used to register the defined conditions in the default or custom queryBuilderConfigClass object.
listQueryConditions
: returns list of registered conditions.
default_conditions
: an object storing default definitions for conditions.
setQueryConditions(
"XOR" = queryCondition(xor)
)
query <- queryGroup(
condition = "XOR",
queryRule("am", "equal", 1),
queryRule("vs", "equal", 1)
)
queryToExpr(query)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.