gt icon indicating copy to clipboard operation
gt copied to clipboard

Add the `tab_row_groups_when()` function

Open jcheng5 opened this issue 3 years ago • 0 comments

Ability to specify multiple row groups in a dplyr::case_when fashion

exibble %>%
  gt() %>%
  tab_row_groups_when(
    group == "grp_a" ~ "A",
    group == "grp_b" ~ c("Group B" = "B"),  # label is "Group B", group_id is "B"
    TRUE ~ "default"
  )

jcheng5 avatar Mar 26 '21 18:03 jcheng5