Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. dateInput("date","Enter date:",value = date),
  2. checkboxGroupInput("variable", "Variable:",
  3. choices = names ,selected = names
  4. )
  5.  
  6. dataall <- reactive({
  7. filename <- paste0("dataall_'", input$date, "'.RData")
  8. load(filename)
  9. feature.test[,names(feature.test) %in% input$variable]
  10. })
  11.  
  12. shiny::runApp(list(
  13. ui = basicPage(
  14. selectInput("specy", "Specy", choices = levels(iris$Species)),
  15. tableOutput("content")
  16. ),
  17. server = function(input, output, session) {
  18. output$content <- renderTable({
  19. iris[iris$Species == input$specy, ]
  20. })
  21. }
  22. ))
  23.  
  24. shiny::runApp(list(
  25. ui = pageWithSidebar(
  26. headerPanel("Example"),
  27. sidebarPanel(
  28. checkboxGroupInput("variable", "Variable:", choices = names(iris))
  29. ),
  30. mainPanel(
  31. tableOutput("content")
  32. )
  33. ),
  34. server = function(input, output, session) {
  35. output$content <- renderTable({
  36. if(is.null(input$variable))
  37. return()
  38.  
  39. iris[input$variable]
  40. })
  41. }
  42. ))
  43.  
  44. checkboxGroupInput( "date", "Variable:",
  45. choices = names ,selected = names
  46. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement