{DT}
is a package to render html tables. It is an interface to the datatables javascript library. It should not be confused with the {data.table}
package, which is a package useful for data wrangling.
A similar package of the same purpose is {kableExtra}
. I found that {kableExtra}
is more suitable for making static tables, whereas {DT}
is more suitable for making interactive tables.
DT
Adding captions
DT::datatable(iris[1:10,],caption = htmltools::tags$caption( style = 'caption-side: top; text-align: center; color:black; font-size:200% ;','Table1: Iris Dataset Table') )