Utilizing the searchPane extension of DT, which is an R interface to the DataTables library.
When constructing a dataTable with a searchPane, the code would appear as follows:
library(DT)
datatable(
iris,
options = list(dom = 'Pfrtip', columnDefs = list(list(
searchPanes = list(show = TRUE), targets = 1:4
))),
extensions = c('Select', 'SearchPanes'),
selection = 'none'
)
Is there a method to preserve the filtered table or the filters applied by the users for future analysis in R?
Thank you.