Description Usage Arguments Value Examples
Convenience functions to generate a table header (<thead></thead>) or
footer (<tfoot></tfoot>) given the column names. They are basically
wrappers of htmltools::tags$th
applied to the column names.
1 2 3 | tableHeader(names, escape = TRUE)
tableFooter(names, escape = TRUE)
|
names |
a character vector of the column names of the table (if it is an object with column names, its column names will be used instead) |
escape |
whether to escape the names (see |
A tag object generated by htmltools::tags
.
1 2 3 4 5 6 7 | library(DT)
tableHeader(iris) # or equivalently,
tableHeader(colnames(iris))
tableFooter(iris) # footer
library(htmltools)
tags$table(tableHeader(iris), tableFooter(iris))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.