| nest_by | R Documentation | 
nest_by() is similar to group_by() however instead of storing the group structure in the metadata, it is made
explicit in the data. Each group key is given a single row within the data.frame and the group's data is stored
within a list-column of the data.frame.
nest_by(.data, ..., .key = "data", .keep = FALSE)
| .data | A  | 
| ... | Grouping specification, forwarded to  | 
| .key | 
 | 
| .keep | 
 | 
Currently there is no pretty-printing provided for the results of nest_by() and they are not useable with other
functions such as mutate().
mtcars %>% nest_by(am, cyl)
# Or equivalently
mtcars %>% group_by(am, cyl) %>% nest_by()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.