If you are writing an RMarkdown document, you can customize your HTML tables using style sheets.
You can do this by adding a CSS parameter to your YAML header. Something like that:
---
title: "My HTML Doc"
output:
html_document:
css: styles.css
---
To increase the spacing between columns, you can, for example, add a few paddings to the left of the cells. So in your files styles.cssyou can add something like:
th, td {
padding-left: 10px;
text-align: left;
}
CSS RMarkdown, , . CSS HTML, , .