I am using the renderTable function from the R Shiny package and it is returning a table with row names. Ideally I want a table to be displayed with only two columns, one for 'Month' and one for 'Value'. The output I currently get includes the row names. I have tried a few things to exclude row names but was unsuccessful. Any thoughts?
output$valueTable <- renderTable({
if(input$table_view == TRUE){
data.frame(Month = Month(), Value = valueData()[,"Value"])
}
})
renderTable
has a...
which passes options toxtable
.xtable
has aninclude.rownames
options. Try usinginclude.rownames = FALSE
as an option inrenderTable
– jdharrison