Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(shiny)
- library(DT)
- ui <- fluidPage(
- titlePanel("Edgar Anderson's Iris Data"),
- DT::dataTableOutput('dt')
- )
- # Define server logic required to draw a histogram
- server <- function(input, output) {
- output$dt <- renderDataTable({
- datatable(
- iris,
- filter='top',
- options=list(dom='lritp')
- )
- })
- }
- shinyApp(ui = ui, server = server)
- library(shiny)
- library(DT)
- ui <- fluidPage(
- titlePanel("Edgar Anderson's Iris Data"),
- DT::dataTableOutput('dt')
- )
- # Define server logic required to draw a histogram
- server <- function(input, output) {
- output$dt <- renderDataTable({
- datatable(
- iris,
- filter='top',
- options=list(dom='lritp',
- searchCols = list(NULL, NULL, NULL, NULL, NULL, list(search = '["virginica"]')))
- )
- })
- }
- shinyApp(ui = ui, server = server)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement