desc: Descending order

View source: R/desc.R

descR Documentation

Descending order

Description

Arrange in descending order. Can be used inside of arrange()

Usage

desc(x)

Arguments

x

Variable to arrange in descending order

Examples

df <- data.table(
  a = 1:3,
  b = 4:6,
  c = c("a", "a", "b")
)

df %>%
  arrange(c, desc(a))

tidytable documentation built on Sept. 11, 2024, 8:05 p.m.