ddsjoberg / gtsummary

Presentation-Ready Data Summary and Analytic Result Tables
http://www.danieldsjoberg.com/gtsummary
Other
1.04k stars 114 forks source link

`tbl_strata()` could use a re-write #1740

Open ddsjoberg opened 3 months ago

ddsjoberg commented 3 months ago

During the v2.0 migration, I got a bit lazy and copied over bits that are no longer needed.

Also, I wonder if it's worth it to allow stratifying when the levels have no observations? This would require updates to functions like tbl_summary() that stops when the data frame passed is empty.