https://github.com/hadley/dplyr
Raw File
Tip revision: b758f667ceec5db41c2fb57431265073d31afc01 authored by Romain Francois on 13 January 2021, 10:25:01 UTC
patch version and update cran-comments
Tip revision: b758f66
desc.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desc.r
\name{desc}
\alias{desc}
\title{Descending order}
\usage{
desc(x)
}
\arguments{
\item{x}{vector to transform}
}
\description{
Transform a vector into a format that will be sorted in descending order.
This is useful within \code{\link[=arrange]{arrange()}}.
}
\examples{
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))
}
back to top