Learn R Programming

poorman (version 0.2.6)

arrange: Arrange rows by variables

Description

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

Usage

arrange(.data, ...)

Value

A data.frame.

Arguments

.data

A data.frame.

...

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

Examples

Run this code
arrange(mtcars, mpg)
mtcars %>% arrange(mpg)
mtcars %>% arrange(cyl, mpg)

Run the code above in your browser using DataLab