Description Usage Arguments Examples
Add indentations to row headers
1 | add_indent(kable_input, positions, level_of_indent = 1, all_cols = FALSE)
|
kable_input |
Output of |
positions |
A vector of numeric row numbers for the rows that need to be indented. |
level_of_indent |
a numeric value for the indent level. Default is 1. |
all_cols |
T/F whether to apply indentation to all columns |
1 2 3 4 5 6 | ## Not run:
x <- knitr::kable(head(mtcars), "html")
# Add indentations to the 2nd & 4th row
add_indent(x, c(2, 4), level_of_indent = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.