desc

0th

Percentile

Descending order

Transform a vector into a format that will be sorted in descending order. This is useful within arrange().

Usage
desc(x)
Arguments
x

vector to transform

Aliases
  • desc
Examples
# NOT RUN {
desc(1:10)
desc(factor(letters))

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

starwars %>% arrange(desc(mass))
# }
Documentation reproduced from package dplyr, version 0.7.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.