seankross / mario

🍄 But our princess is in another castle!
Other
21 stars 1 forks source link

get group_by() working and interacting nicely with the other core dplyr verbs #34

Closed pgbovine closed 2 years ago

pgbovine commented 3 years ago

these are the critical test cases to get working here: https://github.com/seankross/mario/tree/main/inst/test/pg-dump_2021-11-05/groupby-most-important

pgbovine commented 2 years ago

Make sure that it also works if the group_by was done in an earlier expression. e.g.,

mt <- mtcars %>% as_tibble() %>% select(mpg, cyl, hp) %>% group_by(cyl)

# we're doing this on a separate line
mt %>% summarize(Mean = mean(mpg))