【发布时间】:2015-10-07 19:39:32
【问题描述】:
根据第 2.3 节 here 中的说明,我可以通过设置 rownames = FALSE 来删除数据表的行名
在 R 中使用 DT::renderDataTable 时如何抑制行名?以下内容不起作用,因为如果您查看 dataTables options reference 则没有 rownames 选项
output$subsettingTable <- DT::renderDataTable(
subsetTable(), filter = 'top', server = FALSE,
options = list(pageLength = 5, autoWidth = TRUE, rownames= FALSE
))
我的问题与here 类似。 renderTable 的答案,我已经尝试使那里的答案与 DT::renderDataTable 一起工作,但成功率为零。
【问题讨论】: