Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- column(width = 10,
- radioButtons(inputId="variables", label="Select variables:",
- choices = c("All","mpg","cyl","disp"),
- selected = "All", inline = TRUE )),
- column(width = 10,
- selectInput(inputId = "level", label = "Choose Variables to
- display", multiple = TRUE, choices = names(mtcars)[4:11]))),
- mainPanel (
- h2("mtcars Dashboard"),
- DT::dataTableOutput("table"))))
- data <- mtcars
- data<-data[,input$variables,drop=FALSE]
- column = names(mtcars)
- if (!is.null(input$level)) {
- column = input$level }
- data
- })) }
Add Comment
Please, Sign In to add comment