【发布时间】:2015-05-19 15:38:59
【问题描述】:
我需要在我的 Shiny App 中对数据框应用过滤器。 我正在寻找一些按钮(小按钮),它可以打开特定列的值的多选列表。类似于 Excel 的表格过滤器
举个例子(来自another topic):
library(shiny)
shiny::runApp(list(
ui = fluidPage(
checkboxGroupInput("specy", "Specy", choices = levels(iris$Species)),
tableOutput("content")
),
server = function(input, output, session) {
output$content <- renderTable({
iris[iris$Species == input$specy, ]
})
}
))
来自the widget fallery 的一些想法:使用点击actionButton 时出现的checkboxGroupInput
欢迎各种建议。谢谢
【问题讨论】:
-
我很清楚,您是否正在寻找一种仅在单击按钮时才显示复选框的方法?
-
没错!并在应用过滤器后隐藏