So I'm hoping some knowledgeable #RStats folk follow me. May I pick your brains ...

@statsguy@mas.to

So I'm hoping some knowledgeable #RStats folk follow me. May I pick your brains please?

I've been programming in SAS or Stata for about 30 years, but only recently learning R. I think I'm more or less there with the basics, but I'm now trying to figure out how to make nice looking output.

So, first question: if I want to make a PDF with a combination of tables and figures and all the things you'd expect in a nice PDF like TOCs, page numbering, headers, footers, etc, it looks like the main options are R Markdown or Quarto, and if I'm starting from scratch then Quarto is probably the better option. Is that right or am I missing something?

And second: variable labels. This looks like it's quite a bit more faffy than in SAS or Stata. Any tips for labelling variables so that if I create a table from a dataframe, then the column headers will easily populate with the variable labels rather than the variable names?

Thanks!