【发布时间】:2019-10-20 16:47:49
【问题描述】:
我正在关注这里的示例:https://rstudio.github.io/DT/
我可以在表格上方添加标题:
library(DT)
datatable(
head(iris),
caption = 'Table 1: This is a simple caption for the table.'
)
表格下方的标题是:
library(DT)
datatable(
head(iris),
caption = htmltools::tags$caption(
style = 'caption-side: bottom; text-align: center;',
'Table 2: ', htmltools::em('This is a simple caption for the table.')
)
)
我怎么能同时有两个字幕(上方和下方)?
干杯, 凯特
【问题讨论】:
标签: r shiny datatables r-markdown dt