define_filters {shinyfilter} | R Documentation |
Define the set of interdependent filters
Description
Installs the filters and binds them to the reactable
widget and the dataframe presented in the reactable
.
define_filters()
needs to be called in the server function of any
shiny app using shinyfilter
.
Usage
define_filters(input, react_id, filters, data)
Arguments
input |
The input object provided as an argument to the server function. |
react_id |
Object ID/input slot of the |
filters |
A named character vector with the column names of the
dataframe that will be filtered. The names of the vector elements
are the object IDs/input slots of the respective |
data |
The (unfiltered) dataframe presented in the |
Details
For a full example of a shiny app using shinyfilter
please
call up the help for update_filters()
. See the
README.md
file or the GitHub repo on
https://github.com/jsugarelli/shinyfilter
for a comprehensive shinyfilter
tutorial.
Value
No return value.