module-filterDF {esquisse} | R Documentation |
Shiny module to interactively filter a data.frame
Description
DEPRECATED, please see package datamods for similar features.
Usage
filterDF_UI(id, show_nrow = TRUE)
filterDF(
input,
output,
session,
data_table = reactive(),
data_vars = shiny::reactive(NULL),
data_name = reactive("data"),
label_nrow = "Number of rows:",
drop_ids = TRUE,
picker = FALSE
)
Arguments
id |
Module id. See |
show_nrow |
Show number of filtered rows and total. |
input , output , session |
standards |
data_table |
|
data_vars |
|
data_name |
|
label_nrow |
Text to display before the number of rows of filtered data / source data. |
drop_ids |
Drop columns containing more than 90% of unique values, or than 50 distinct values. |
picker |
Use |
Value
A list
with 2 elements :
-
data_filtered :
reactive
function returning data filtered. -
code :
reactiveValues
with 2 slots :expr
(raw expression to filter data) anddplyr
(code with dplyr pipeline).