Description Usage Arguments Value Examples
Filter Shiny Module
1 | filterpanel(input, output, session, data)
|
data |
A Dataframe to filter. Accept numerical and chr vars |
A reactive Dataframe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | require(shiny)
if(interactive()) {
ui <- fluidPage(
filterpanelUi("prova"),
mainPanel(tableOutput("tbl"))
)
server <- function(input, output, session) {
dt <- callModule(filterpanel, "prova", data = CO2)
output$tbl <- renderTable({
dt()
})
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.