Error in Am[1] = renderPrint(input$num) :
incompatible types (from closure to double) in subassignment type fix
shinyUI(fluidPage(
titlePanel("Matching future job requirements with educational portfolio"),
sidebarLayout(
sidebarPanel(
numericInput("num", label = h3("Numeric input"), value = 1),
submitButton("Update View")),
mainPanel(
tabsetPanel(
tabPanel("Input Coefficient",
tags$div(class = "header", checked = NA,
tags$p(h1("Input Coefficent for 19 industries")),
tableOutput("input_coefficient")
),
tabPanel("Import Coefficient",tableOutput("import_coefficient")),
)
))
))
shinyServer(function(input, output){
Am<-as.matrix(read.csv("data/input_coefficient.csv", header=F, sep=","))
Am[1]=renderPrint(input$num)
output$input_coefficient <- renderTable({Am})
})