The server function for the filter item module of a data filter module panel
shiny_data_filter_item.Rd
The server function for the filter item module of a data filter module panel
Usage
shiny_data_filter_item(
input,
output,
session,
data,
column_name = NULL,
choices = names,
verbose = FALSE
)
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
- data
a
reactive expression
returning adata.frame
to use as the input to the filter item module- column_name
A column name to initialize the filter item with. If unspecified or
NULL
, the filter item is initialized in its column selection state.- choices
a
list
of values to select from, passed toselectizeInput
. Alternatively,choices
may also be a function used to extract choices from a (possibly filtered)data
. Defaults to the names ofdata
.- verbose
a
logical
value indicating whether or not to print log statements out to the console
Value
a reactiveValues
list of three reactive elements;
(1) a reactive data frame, (2) the code to filter a vector with the name of
the specified data column, and (3) a flag indicating when to remove this
filter.