Adjusting width of tables made with kable() in RMarkdown documents

前端 未结 4 1142
刺人心
刺人心 2020-12-08 14:30

Is it possible to adjust the width of columns when making tables with the kable() function in knitr?

A chunk like this for a table with two columns produces a table

4条回答
  •  借酒劲吻你
    2020-12-08 15:13

    You can try out the kableExtra package.

    kable(x, "html") %>%
      kable_styling(full_width = F)
    

提交回复
热议问题