Formatting tables with R for LaTeX and HTML