desc: Descending order.

View source: R/arrange.r

descR Documentation

Descending order.

Description

Transform a vector into a format that will be sorted in descending order.

Usage

desc(x)

Arguments

x

vector to transform

Examples

desc(1:10)
desc(factor(letters))
first_day <- seq(as.Date("1910/1/1"), as.Date("1920/1/1"), "years")
desc(first_day)

plyr documentation built on March 25, 2022, 1:05 a.m.

Related to desc in plyr...