Skip to content

Instantly share code, notes, and snippets.

@paleolimbot
Last active April 27, 2020 16:19
Show Gist options
  • Save paleolimbot/aac45ccd2295d207c160f4591c143522 to your computer and use it in GitHub Desktop.
Save paleolimbot/aac45ccd2295d207c160f4591c143522 to your computer and use it in GitHub Desktop.
library(dplyr)
tibble(a = 1, x = 1:2) %>%
group_by(a, x) %>%
summarise(sum(x))
tibble(a = 1, x = 1:2) %>%
group_by(a, x) %>%
summarise(1:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment