sort.grouped_df | R Documentation |
As of 0.5, dplyr::arrange ignores groups. This function gives the old behavior as a method for generic base::sort. Borrowed from Ax3man at https://github.com/hadley/dplyr/issues/1206.
## S3 method for class 'grouped_df'
sort(x, decreasing = FALSE, ...)
x |
grouped_df |
decreasing |
logical (ignored) |
... |
further sort criteria |
grouped_df
library(dplyr)
head(sort(group_by(Theoph, Subject, Time)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.