powered by
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 grouped_df sort(x, decreasing = FALSE, ...)
grouped_df
logical (ignored)
further sort criteria
library(dplyr) head(sort(group_by(Theoph, Subject, Time)))
Run the code above in your browser using DataLab