Grouping and nesting
Let's practice nesting data frames, getting familiar with the output, and computing on nested data frames.
This exercise is part of the course
Visualizing Big Data with Trelliscope in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
library(dplyr)
library(tidyr)
# Nest stocks by symbol
by_symbol <- stocks %>%
___ %>%
___