worldbank/dime-r-training

Content on exporting tables

thiagoscot opened this issue · 0 comments

This is a suggestion for the "05 - Descriptive analysis" module regarding descriptive tables.

When working on a paper, my “data pipeline” for a table is something like “Clean data on Stata, generate a table in .tex and then input that table in my paper/beamer .tex file”. I had a bit of a hard time finding a good option to do that in R. Stargazer works great for regression tables but not for highly customized descriptive tables. Huxtable, your suggestion on the slides, is awesome to generate tables, but is horrible to export the table – it has those options “quick_latex”, “quick_pdf”, etc.. you mention, but that’s not what I (and I guess many Stata users want): I want a fragment of tex file that I can input in a master file, not a full tex file that I compile and generate a PDF with a single table.

I found a solution I was pretty happy with on kable – I thought it was a bit more clumsy than huxtable, but exports easily to a tex fragment I can input on my documents. This might be a good option to include in the slides! Thanks