shiny_vector_filter {IDEAFilter} | R Documentation |
The shiny_vector_filter
family of S3 dispatched functions use the
input data to route to the appropriate ui and server functions for the vector
datatype.
shiny_vector_filter(data, inputId, global = FALSE)
data |
the data object to be filtered |
inputId |
The |
global |
The |
The shiny_vector_filter
functions return the shiny module server
functions to use for the specified filter. These functions should follow the
following template:
function(input, output, session, x, filter_na, verbose = FALSE) { # ... additional code here reactiveValues(code = TRUE, mask = TRUE) }
This function will conform to the following specification
Arguments
input
requisite shiny module field specifying incoming ui input reactiveValues
output
requisite shiny module field capturing output for the shiny data filter ui
session
requisite shiny module field containing the active shiny session
x
a reactive expression resolving to the vector to filter
filter_na
a logical value indicating whether to filter NA
values from the
x
vector
verbose
a logical
value indicating whether or not to print log
statements out to the console
Value
a reactiveValues
list containing a logical vector
called "mask" which can be used to filter the provided vector and an element
"code" which is the expression used to generate the mask.
a shiny server function as described in the details