A follow-up question, if I may:
I'd like to display column headers together with matrixInput, any idea how to do that?
In the following:
matrixInput(inputId = 'data', label = 'Add/Remove Rows', data = df)
the colnames of data frame df are ignored.
Also how to display the table in the sidebarPanel to the mainPanel? The idea would be, say, to have 2 columns in the sidebarPanel and 3 in the mainPanel, where the third column would contain computations of some sort, e.g. the sum of the rows.
My approach was to try to copy the matrixInput to a data frame for further manipulations and display. But I wasn't able to "capture" the matrixInput.
I tried:
output$table <- renderTable({data}
where 'data' is the 'inputId' of 'matrixInput'.
I tried also with the 'outputId' of the 'table'
some failed attempts are here:
runGist("
https://gist.github.com/anonymous/7388846")
Any suggestions welcome
Thanks!