arrange_dt: Arrange entries in data.frame

View source: R/arrange_dt.R

arrange_dtR Documentation

Arrange entries in data.frame

Description

Order the rows of a data frame rows by the values of selected columns.

Usage

arrange_dt(.data, ...)

Arguments

.data

data.frame

...

Arrange by what group? Minus symbol means arrange by descending order.

Value

data.table

See Also

arrange

Examples


iris %>% arrange_dt(Sepal.Length)

# minus for decreasing order
iris %>% arrange_dt(-Sepal.Length)

# arrange by multiple variables
iris %>% arrange_dt(Sepal.Length,Petal.Length)


tidyfst documentation built on Sept. 16, 2024, 9:06 a.m.