install.packages("kableExtra") library(kableExtra)
kbl(z) %>% kable_styling ( "striped", full_width = F, position = "center" ) %>% kable_styling ( bootstrap_options = c("bordered", "hover"), table.attr = "style='border: 2px solid black;'" # Custom border style )