powered by
Order rows of a data.frame by an expression involving its variables.
data.frame
arrange(.data, ...)
A data.frame.
A comma separated vector of unquoted name(s) to order the data by.
arrange(mtcars, mpg) mtcars %>% arrange(mpg) mtcars %>% arrange(cyl, mpg)
Run the code above in your browser using DataLab