Make grouped tibble appear as regular column #1267
Replies: 1 comment
-
When I say this parameter is hidden deep on the In my opinion, which I recognize that might not be all that significant as I am a quite new member of the R community, |
Beta Was this translation helpful? Give feedback.
-
I'm writing this post to help anyone coming here with a problem similar to mine.
The problem:
I used a larger data set to create a small table I wanted, and to do so, I used
dplyr::group_by()
. I didn't want to use these groups as row groups, but gt automatically uses that column to create grouped rows, and I didn't find any way to convince gt to remove the grouped rows (I only found a workaround to supress them: #140, but that only makes them disappear, which I didn't want)The solution:
Hidden deep on
gt::tab_options()
, there's a parameter calledrow_group.as_column
which, when set toTRUE
, makes the column appear as I intended to.Beta Was this translation helpful? Give feedback.
All reactions