1

渲染数据表时如何更改“filtered_data”数据框的标签。呈现数据的代码如下。

output$table <- DT::renderDataTable(
  DT::datatable(filtered_data(), options = list(searching = TRUE,pageLength = 5,
                                                lengthMenu = c(5, 10, 15, 20), scrollX = T))
)

这似乎很容易,但让我望而却步......

4

1 回答 1

1

您可能正在https://rstudio.github.io/DT/中寻找自定义列名

datatable(filtered_data(), colnames = c('Here', 'Are', 'Some', 'New', 'Names'))
于 2021-06-17T15:32:44.540 回答