tableone icon indicating copy to clipboard operation
tableone copied to clipboard

Option to separate n from (%) col

Open mikedolanfliss opened this issue 7 years ago • 1 comments

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?

mikedolanfliss avatar Aug 06 '17 16:08 mikedolanfliss

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

kaz-yos avatar Aug 06 '17 21:08 kaz-yos