View source: R/htmlTable_render_getThead.R
prGetThead | R Documentation |
Renders the table head (thead)
prGetThead(
x,
header = NULL,
cgroup = NULL,
n.cgroup = NULL,
caption = NULL,
compatibility,
total_columns,
css.cgroup,
top_row_style,
rnames,
rowlabel = NULL,
cgroup_spacer_cells,
prepped_cell_css,
style_list,
cell_style
)
x |
The matrix/data.frame with the data. For the |
header |
A vector of character strings specifying column
header, defaulting to |
cgroup |
A vector, matrix or list of character strings defining major column header. The default
is to have none. These elements are also known as column spanners. If you want a column not
to have a spanner then put that column as "". If you pass cgroup and |
n.cgroup |
An integer vector, matrix or list containing the number of columns for which each element in
cgroup is a heading. For example, specify |
caption |
Adds a table caption. |
compatibility |
Is default set to |
total_columns |
The total number of columns including the rowlabel and the specer cells |
top_row_style |
The top row has a special style depending on
the |
rnames |
Default row names are generated from |
rowlabel |
If the table has row names or |
cgroup_spacer_cells |
The spacer cells due to the multiple cgroup levels.
With multiple rows in cgroup we need to keep track of how many spacer cells
occur between the columns. This variable contains is of the size |
style_list |
The list with all the styles |
string
Returns the html string for the <thead>...</thead>
element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.