library(shiny)
library(DT)
shinyApp(
ui = fluidPage(
helpText(h2("It pretends that these commands is the first column of the table below. (COLUMN 1)")),
numericInput('a','',value=1),
numericInput('b','',value=1),
DT::dataTableOutput('dados'),
helpText(h1("NOTE: The column2 is a product between column1 and a any vector"))
),
server = function(input, output) {
# create a character vector of shiny inputs
dados <- reactive({
dad <- data.frame(COLUMN2 = c(.5,2) * c(input$a, input$b))
})
output$dados <- renderDataTable({dados()})
}
)
Thank you for the patience!