TysonStanley / furniture

The furniture R package contains table1 for publication-ready simple and stratified descriptive statistics, tableC for publication-ready correlation matrixes, and other tables #rstats
49 stars 7 forks source link

sanitize issue for ungrouped latex2 output #16

Closed SarBearSchwartz closed 5 years ago

SarBearSchwartz commented 5 years ago

The table1() function does not sanitize text for ungrouped data when the option is set to output = "latex2", such that the column heading "Mean/Count (SD/%)" will not knit due to the percentage symbol.

Instead, it should by "Mean/Count (SD/\%)" ...which it does correctly when the option is set to output = "latex". This output does not allow for setting the option for float position.

The heading with the percentage symbol is not used for split/grouped tables.

TysonStanley commented 5 years ago

Weird you bring this up right now bc someone else just did two minutes before you! Yes, this is definitely a bug that I'll get fixed soon and then release to CRAN (I've been needing to send an update to CRAN anyway).

TysonStanley commented 5 years ago

Should be fixed in the GitHub version. Should release to CRAN later this week.