Help with table strata/rendering

I'm currently trying to figure out the table1 function, namely how to name and obtain 2 columns in my descriptive data table: one column for the Mean (SD) of my continuous variables, and one for the %s for my categoricals. However, I don't want these values to be in the same column, if that makes sense. How would I go about doing this with the table1 package? My table currently looks like this.


Hi @lc_2001,
Welcome to the RStudio Community Forum.

My reading of the table1 package documentation suggests that it is not possible to specify the table layout you require:

vignette(topic="table1-examples", package="table1")

You can try and get more help by posting the data and code you used to create your table, or calculate your statistics by hand and investigate other ways to put those values into a suitable formatted table using one of these packages: gt, flextable, huxtable, xtable, kableExtra, tables.


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.