Learn R Programming

poorman (version 0.2.3)

arrange: Arrange rows by variables

Description

Order rows of a data.frame by an expression involving its variables.

Usage

arrange(.data, ...)

Arguments

.data

A data.frame.

...

A comma separated vector of unquoted name(s) to order the data by.

Value

A data.frame.

Examples

Run this code
# NOT RUN {
arrange(mtcars, mpg)
mtcars %>% arrange(mpg)
mtcars %>% arrange(cyl, mpg)

# }

Run the code above in your browser using DataLab