如何将使用 kableextra 绘制的 table 中的文本居中?

How to center text in a table drawn with kableextra?

有人知道如何使 table 中的文本居中吗?

Mod <- c("1","1b","2","2b","3 ","3b")
Lag <- c("1","1","1","1","1","1")



dt <- data.frame(cbind(Mod,Lag))
dt %>%
  kbl() %>%
  kable_classic(full_width = T, html_font = "Cambria")

Mod <- c("1","1b","2","2b","3 ","3b")
Lag <- c("1","1","1","1","1","1")



dt <- data.frame(cbind(Mod,Lag))
dt %>%
  kbl() %>%
  kable_classic(full_width = T, html_font = "Cambria")%>%row_spec(0:6, align = "c")