Stack columns in a table for clearer viewing
1 2 3 4 5 6 7 8 9 10 | kable_stk_hdr(
data,
head_col,
to_col,
caption = NULL,
indent = TRUE,
hdr_prefix = "",
hdr_suffix = "",
tblOnly = FALSE
)
|
data |
dataframe |
head_col |
character value specifying the column name with the headers |
to_col |
character value specifying the column name to add the headers into |
caption |
table caption |
indent |
should the original values in the to_col be indented |
hdr_prefix |
character value that will prefix headers |
hdr_suffix |
character value that will suffix headers |
tblOnly |
boolean indicating if the table should be formatted for prining or returned as a data frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.