kable
with a hierarchical headergrable.Rd
Create a knitr::kable
with a multi-layered (graded) header.
grable(
data,
at,
sep = "_",
reverse = FALSE,
format = c("html", "latex"),
caption = NULL,
...
)
A data.frame
.
A vector of quoted/unquoted columns, positions, and/or tidyselect::select_helpers
. Defaults to all columns.
String to separate the columns. Defaults to "_".
Should the layers be added in the opposite direction? Defaults to FALSE
.
Format for rendering the table. Must be "html" (default) or "latex".
Optional caption for the table
Arguments to pass to kableExtra::kable_styling