View source: R/calls_combine_by.R
calls_combine_by | R Documentation |
Combines calls with a logical operator.
calls_combine_by(calls, operator)
calls |
( |
operator |
( |
This function is used to combine logical predicates produced by FilterState
objects
to build a complete subset expression.
A call
where elements of calls
are composed with operator
or NULL
if calls
is an empty list.
# use non-exported function from teal.slice
calls_combine_by <- getFromNamespace("calls_combine_by", "teal.slice")
calls <- list(
quote(SEX == "F"), # subsetting on factor
quote(AGE >= 20 & AGE <= 50), # subsetting on range
quote(!SURV) # subsetting on logical
)
calls_combine_by(calls, "&")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.