-1

I cannot figure out how to remove the first column from the table since the column header is blank. Is there an option for removing this column or how can I access by column index? Again, I am using R, but JS could work as well.

library(shiny)
library(RagGrid)

ui <- shinyUI(fluidPage(
  title = 'Use the RagGrid package in shiny',
  fluidRow(
    column(2),
    column(8, RagGrid::RagGridOutput('tbl1')),
    column(2)
  )
))

server <- shinyServer(function(input, output, session) {
  output$tbl1 <- renderRagGrid(aggrid(iris))
})

shinyApp(ui = ui, server = server)

Note: ag-grid puts this column in automatically, it is not actually in the underlying data frame. See example table here

  • Please provide data in a [reproducible manner](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example), not as an image. – Jan Boyer Sep 05 '18 at 19:09

1 Answers1

-1

This removes the first column, regardless of its name:

dataframe[,-1]
SherylHohman
  • 16,580
  • 17
  • 88
  • 94