rstudio - Underline in RTF reporting in R -


hi want create following rtf data frame in r-

df <-  country         n1   mean1   sd1   n2   mean2    sd1  ---------------------------------------------------- bangladesh      52   25.03   0.02  43   22.31   0.08 germany         42   95.01   1.02  53   9.31    0.09 italy            2   20.22   0.00  11   8.09    1.11 --- 

i want report as:

                    treatment         treatment b  country          n    mean    sd     n    mean     sd  ------------------------------------------------------ bangladesh      52   25.03   0.02    43   22.31   0.08 germany         42   95.01   1.02    53   9.31    0.09 italy            2   20.22   0.00    11   8.09    1.11 --- 

with 2 underlines under texts "treatment a" , "treatment b". like-

        treatment ------------------------ n        mean         sd 

can 1 please me.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -