daranzolin/hacksaw

`no_groups()` helper within *_split functions

Closed this issue · 1 comments

e.g.

iris %>%
    group_by_split(
        no_groups(),
        Species
    )

Turns out a comma is all that's needed:

library(hacksaw)
library(tidyverse)

iris %>% 
  group_by_split(
    ,
    Species
  ) %>% 
  map(\(x) groups(x))
#> [[1]]
#> list()
#> 
#> [[2]]
#> [[2]][[1]]
#> Species

Created on 2024-10-24 with reprex v2.0.2