spgarbet / tangram

Table Grammar package for R
66 stars 3 forks source link

RTF Rendering - Categorical vars rendered the opposite way #52

Open xmarti6 opened 4 years ago

xmarti6 commented 4 years ago

Hi, awesome package! RTF seems to work quite well, but found a bug when rendering categorical variables. In the Lancet example for instance, the output generated in HTML5 for sex is:

sex : female 418 139(90.3%)

However, if I do copy/paste to this editor I get this, % and then counts:

sex : female 418 90.3139

Similarly, in the RTF generated, same result:

sex : female 418 90.3%(139)

I further missed the corresponding superscript in the chi symbol, and the footnote. But for the rest, the generated word/rtf doc is very nice and ressembles HTML5 very well!

Cheers

spgarbet commented 4 years ago

I'll look into this. I'm glad it worked for you. It's really amazing because I've ignored RTF for over a year and thought it was horribly broken at this point, and it was way down the list of priorities..