删除 Shiny 数据表中的标题行

标签 r datatable shiny dt

我正在尝试删除 Shiny 数据表中的标题行,有人知道是否有这样做的选项吗?

最小的例子:

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

#UI.R
dataTableOutput('myTable')

最佳答案

只需添加 colnames = NULL给您的 datatable()

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

?datatable

关于删除 Shiny 数据表中的标题行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33396383/

相关文章:

C# - 从 DataTable 中删除具有相同列值的行

r - 带有 shinyTable 和 submitButton 的可编辑表格

r - R 中的类概率 randomForest

vb.net - 一张表和两个组合框

javascript - 在 php 数据表中为谷歌图表自定义 html 工具提示添加属性

r - 如何阻止 renderTable 默认为小数点后两位?

r - 如何在 Shiny 模块中使用 ShinyFiles 包 - 命名空间问题?

r - 创建并保存 R 的默认密码本为 pdf

r - 虚拟变量取决于 df$id 列的字符长度

R Plot 指定时间刻度线的数量 - 时间/日期相当于漂亮