मैं R Shiny में एक datatable है और हेडर कि span multiple columns like below करना चाहते हैं:आर चमक में जटिल शीर्षलेख के साथ डेटाटेबल कैसे बनाएं?
यह कैसे आर चमकदार में प्राप्त किया जा सकता?
मैं R Shiny में एक datatable है और हेडर कि span multiple columns like below करना चाहते हैं:आर चमक में जटिल शीर्षलेख के साथ डेटाटेबल कैसे बनाएं?
यह कैसे आर चमकदार में प्राप्त किया जा सकता?
आरस्टूडियो डीटी (https://github.com/rstudio/DT) से नया पैकेज देखें। यहां http://rstudio.github.io/DT/ आपको जो चाहिए वह एक उदाहरण मिल सकता है।
थेरेस पहले से ही उदाहरण http://rstudio.github.io/DT/
library(DT)
sketch = htmltools::withTags(table(
class = 'display',
thead(
tr(
th(rowspan = 2, 'Species'),
th(colspan = 2, 'Sepal'),
th(colspan = 2, 'Petal')
),
tr(
lapply(rep(c('Length', 'Width'), 2), th)
)
)
))
datatable(iris[1:20, c(5, 1:4)], container = sketch, rownames = FALSE)