# NOT RUN {
library(dplyr)
iris %>% nest(-Species)
chickwts %>% nest(weight)
if (require("gapminder")) {
gapminder %>%
group_by(country, continent) %>%
nest()
gapminder %>%
nest(-country, -continent)
}
# }
Run the code above in your browser using DataLab