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)


hope-data-science/tidyfst documentation built on Sept. 23, 2024, 8:05 p.m.