Skip to content

Instantly share code, notes, and snippets.

View stephLH's full-sized avatar

Stéphane Le Hénanff stephLH

  • Toulouse, France
View GitHub Profile
@jcheng5
jcheng5 / filters.R
Last active September 12, 2024 22:48
library(shiny)
columnFilterUI <- function(id) {
ns <- NS(id)
uiOutput(ns("filter_container"))
}
columnFilter <- function(input, output, session, df, col_num, choice_filter) {
# This renders a selectInput and only re-renders when the selected data
# frame changes. (i.e. it doesn't re-render when filters change state.)