Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shinyApp(
- ui = basicPage(
- mainPanel(
- numericInput("model_input", label = h5("Total Budget"), value = 9000000),
- numericInput("iterations", label = h5("Iterations"), value = 900),
- actionButton("run", "Run"),
- actionButton("reset", "reset"),
- tableOutput("view")
- )
- ),
- server = function(input, output) {
- runcar<- reactive({
- mtcars %>% mutate(new = mpg * input$model_input +input$iterations)
- })
- output$view <- renderTable({
- mtcars
- })
- }
Add Comment
Please, Sign In to add comment