I want to use function knitr::kable()
in an RStudio notebook.
If column names are short, the spaces between columns are small and it makes information hard to understand (see figure below). It seems that padding
does not work in this situation. Is there a way to make spaces between the columns (indicated by yellow arrows) larger in RStudio notebooks?
library(magrittr)
iris %>%
setNames(c("A", "B", "C", "D", "E")) %>%
head() %>%
knitr::kable(padding = 20)