fmt_kbl_header | R Documentation |
Apply some default formatting to the header row of a kable table. Should be
called after any calls to kableExtra::column_spec()
.
fmt_kbl_header(
kable_input,
row = 0,
align = "c",
extra_css = "border-bottom: 0.16em solid #111111",
...
)
kable_input |
Output of |
row |
A numeric value or vector indicating which row(s) to be selected. You don't need to count in header rows or group labeling rows. |
align |
A character string for cell alignment. For HTML, possible values could
be |
extra_css |
Extra css text to be passed into the cells of the row. Note that it's not for the whole row. |
... |
Additional arguments passed to |
A kable object.
fmt_kbl(mtcars[, 1:3], align = c("r", "c", "r"),
col.names = c("Column 1", "Column 2", "Column 3"),
caption = "Example Table Title") |>
kableExtra::column_spec(1, width = "20em") |>
fmt_kbl_header()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.