RMarkdown kable vertically align cells

后端 未结 2 1144
暖寄归人
暖寄归人 2020-12-19 14:26

I am authoring a report using RMarkdown, and using kable and kableExtra to format and print the table. Here is what I want would look like the table to look like (made in Wo

2条回答
  •  半阙折子戏
    2020-12-19 14:48

    This can be easily achieved in HTML by adding the extra_css argument. (for those who are searching for a similar solution in HTML and are only finding this post)

    column_spec(1,extra_css = "vertical- align:middle;")
    

提交回复
热议问题