arrange: Arrange rows by variables

View source: R/arrange.R

arrangeR Documentation

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

arrange(mtcars, mpg)
mtcars %>% arrange(mpg)
mtcars %>% arrange(cyl, mpg)


nathaneastwood/poorman documentation built on Feb. 10, 2024, 1:41 p.m.