Is there a way to separate this table into multiple or sub-tables using a function of the gt-package, so that every group generated with dplyr::group_by is rendered as separate table (i.e. for printing consecutively)?
Unfortunately, gt_split has no option to do this…
Thank very much.
A good idea the first split, transform to a gt object and then re-group those object.
I just tried it, works fine.
However, I find one downside:
The resulting table have differing widths, that they keep, when re-grouped. Including tab_options(table.width = … ) only fixes this downside as long as … is sufficiently large to cover all resulting table widths. If not, you still get tables of differing width.