powered by
Add indentations to row headers
add_indent(kable_input, positions)
Output of knitr::kable() with format specified
knitr::kable()
format
A vector of numeric row numbers for the rows that need to be indented.
# NOT RUN { x <- knitr::kable(head(mtcars), "html") # Add indentations to the 2nd & 4th row add_indent(x, c(2, 4)) # }
Run the code above in your browser using DataLab