dewittpe / qwraps2

An updated version of qwraps with a focus on flexibility and general purpose. These functions are helpful for extracting and formatting results from R into .Rnw or .Rmd files. Additional functions for routine work such as extracting results from regression models or finding sensitivity and specificity.
http://www.peteredewitt.com/qwraps2/
GNU General Public License v3.0
37 stars 7 forks source link

Implementation questions #83

Closed ericpgreen closed 4 years ago

ericpgreen commented 4 years ago

@dewittpe please let me know if you'd prefer questions like this be posted to SO or somewhere else.

  1. Is there a way to set latex tables to be landscape?

  2. Is it possible to show just one level of binary variables? For instance, if I have a variable Sex can I report just Sex: Female rather than percentages of males and females on two separate lines?

  3. Related to #2, is it possible to skip the row-level grouping in these cases so that the row label Sex: Female is on the same line as the summary data for this variable (and not with the label on it's own row with white space)?

  4. Are captions possible when knitting to PDF? (not rtitle style in the table itself)

  5. Is it possible to keep the N's when using cnames in print()?

Great work with qwraps2!

dewittpe commented 4 years ago

@ericpgreen The simple answer to all your questions is yes. Some will require a bit more detail, but what you are looking for can be achieved. I added the file qwraps2-issue-0083.Rnw and qwraps2-issue-0083.pdf to illustrate possible solutions.

ericpgreen commented 4 years ago

This is REALLY helpful @dewittpe. Thanks for taking the time to show the possible solutions!!