Skip to content

Instantly share code, notes, and snippets.

@keithmcnulty
Created September 1, 2020 10:48
Show Gist options
  • Save keithmcnulty/ba8977e755bfc0b373a430065cb839bb to your computer and use it in GitHub Desktop.
Save keithmcnulty/ba8977e755bfc0b373a430065cb839bb to your computer and use it in GitHub Desktop.
penguins %>%
dplyr::group_by(species) %>%
tidyr::nest() %>%
dplyr::rowwise()
# A tibble: 3 x 2
# Rowwise: species
species data
<fct> <list>
1 Adelie <tibble [152 × 7]>
2 Gentoo <tibble [124 × 7]>
3 Chinstrap <tibble [68 × 7]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment