Nesting tibbles
You're pre-processing the US army body measurement dataset ANSUR II to train multiple models in a single pipeline. You'll experiment with the nest()
function to create a list column with nested tibbles containing sub-sets of the data.
the dplyr
package has been pre-loaded for you.
This exercise is part of the course
Reshaping Data with tidyr
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
ansur_df %>%
# Group the data by branch, then nest
___ %>%
___