arsenal icon indicating copy to clipboard operation
arsenal copied to clipboard

Grouped columns in tableby

Open DidDrog11 opened this issue 4 years ago • 1 comments

image

Have switched to tableby from a different table making package but can't find how to do this.

Have tried tableby(cohort + smoking_status ~ grouped_age) to no effect. Couldn't find this mentioned in the vignette either. Have I just missed it somewhere?

DidDrog11 avatar Sep 24 '20 15:09 DidDrog11

Unfortunately, the best I can do is to suggest a paste0(cohort, smoking_status) on the left-hand side. We use knitr::kable() for table rendering and haven't gone as far as to switch to gt or kableExtra yet. I'll keep this open as a feature request and see what I can do.

eheinzen avatar Sep 24 '20 17:09 eheinzen