Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove header row in shiny datatable

I'm trying to remove the header row in a shiny datatable, does anyone know if there's an option for doing this?

Minimal example:

#SERVER.R
output$myTable <- renderDataTable({
  datatable(dataset, rownames = FALSE, selection = 'none', options = list(dom = 't'))
})

#UI.R
dataTableOutput('myTable')
like image 553
Danny Friar Avatar asked Oct 28 '15 16:10

Danny Friar


1 Answers

Just add colnames = NULL to your datatable()

datatable(mtcars, rownames = FALSE,colnames=NULL, selection = 'none', options = list(dom = 't'))

See ?datatable

like image 147
Sebastian Avatar answered Oct 04 '22 19:10

Sebastian