tableone
tableone copied to clipboard
Option to separate n from (%) col
Hi there, big fan like many others.
Would you consider an option for print() (particularly useful for those formatting in Excel, I imagine) to separate the n and (%) columns? That way excel multi column alignment would be a bit easier. As is I write Excel functions to split the combo column up, but it's tedious each time. Thoughts?
I'll consider that in a future update. At this moment, I would approach it post hoc like you are doing, but manipulating the columns in the matrix object that print() spits out. Transforming to data_frame
in tidyverse and using some string manipulation may help(?).
http://tidyr.tidyverse.org/reference/separate.html