The server function for the filter item module of a data filter module panel
shiny_data_filter_item.RdThe 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 expressionreturning adata.frameto 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
listof values to select from, passed toselectizeInput. Alternatively,choicesmay also be a function used to extract choices from a (possibly filtered)data. Defaults to the names ofdata.- verbose
a
logicalvalue 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.