Learn R Programming

plyr (version 1.8.9)

desc: 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

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

Run the code above in your browser using DataLab