Adjust row height xtable R

烂漫一生 提交于 2019-12-04 04:05:38

You could simply use the booktabs option which increases the padding around the horizontal lines

print(xtable(...),booktabs = T)

Not sure exactly the context here- if you're using LaTeX or if you're printing the table in html (using R Markdown and rendering as a webpage. In the latter case you can specify padding on the table cells using CSS rules at the top of your document between style tags:

<style>
  th,td{
     padding:2px 5px 2px 5px;
  }
</style>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!