library(kableExtra)
df <- data.frame(a = 1:4, b = 4:7)
kbl(df, format = "latex") |>
    column_spec(2,
        bold = TRUE,
        monospace = TRUE,
        underline = TRUE,
        italic = TRUE,
        color = "red",
        background = "#FFFF00",
        width = "3in",
        border_right = TRUE
        )
dt <- mtcars[1:5, 1:6]
kbl(dt, format = "latex", booktabs = TRUE) %>%
  kable_styling(full_width = TRUE) %>%
  column_spec(1, width = "8cm")


Try the kableExtra package in your browser

Any scripts or data that you put into this service are public.

kableExtra documentation built on June 22, 2024, 10:59 a.m.