prGetThead {htmlTable} | R Documentation |
Renders the table head (thead)
Description
Renders the table head (thead)
Usage
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
)
Arguments
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 |
Value
string
Returns the html string for the <thead>...</thead>
element