【发布时间】:2020-10-23 03:14:01
【问题描述】:
我希望能够通过单击列名来排列表格,就像我可以在 R 中使用 View(.) 一样
这是我的代码
library(kable)
library(kableExtra)
titanic %>%
kbl() %>%
kable_styling(bootstrap_options = c("striped", "hover"),
fixed_thead = T) %>%
scroll_box(width = "1000px", height = "1000px")
我现在单击列名,它不会对列重新排序,这就是我想要更改的内容
【问题讨论】: