The following code add indentations to the 2nd & 4th rows for first column only.
library(kableExtra)
knitr::kable(head(mtcars[ ,1:4]), "latex") %>%
add_indent(positions = c(2, 4))
Wondering how to add indentations of specific hspace to the 2nd & 4th rows for all columns. Something like this
library(kableExtra)
knitr::kable(head(mtcars[ ,1:4]), "latex") %>%
add_indent(positions = c(2, 4), hspace = "2em", allCols = TRUE)

