Guest User

Untitled

a guest
Oct 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. column(width = 10,
  2. radioButtons(inputId="variables", label="Select variables:",
  3. choices = c("All","mpg","cyl","disp"),
  4. selected = "All", inline = TRUE )),
  5.  
  6. column(width = 10,
  7. selectInput(inputId = "level", label = "Choose Variables to
  8. display", multiple = TRUE, choices = names(mtcars)[4:11]))),
  9.  
  10.  
  11. mainPanel (
  12. h2("mtcars Dashboard"),
  13. DT::dataTableOutput("table"))))
  14.  
  15. data <- mtcars
  16. data<-data[,input$variables,drop=FALSE]
  17.  
  18. column = names(mtcars)
  19. if (!is.null(input$level)) {
  20. column = input$level }
  21.  
  22. data
  23.  
  24. })) }
Add Comment
Please, Sign In to add comment