forked from tidyverse/dplyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arrange.Rd
48 lines (41 loc) · 1.34 KB
/
arrange.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manip.r
\name{arrange}
\alias{arrange}
\alias{arrange_}
\title{Arrange rows by variables.}
\usage{
arrange(.data, ...)
arrange_(.data, ..., .dots)
}
\arguments{
\item{.data}{A tbl. All main verbs are S3 generics and provide methods
for \code{\link{tbl_df}}, \code{\link[dtplyr]{tbl_dt}} and \code{\link{tbl_sql}}.}
\item{...}{Comma separated list of unquoted variable names. Use
\code{\link{desc}} to sort a variable in descending order.}
\item{.dots}{Used to work around non-standard evaluation. See
\code{vignette("nse")} for details.}
}
\value{
An object of the same class as \code{.data}.
Data frame row names are silently dropped. To preserve, convert to an
explicit variable.
}
\description{
Use \code{\link{desc}} to sort a variable in descending order. Generally,
this will not also automatically order by grouping variables.
}
\section{Locales}{
Note that for local data frames, the ordering is done in C++ code which
does not have access to the local specific ordering usually done in R.
This means that strings are ordered as if in the C locale.
}
\examples{
arrange(mtcars, cyl, disp)
arrange(mtcars, desc(disp))
}
\seealso{
Other single.table.verbs: \code{\link{filter}},
\code{\link{mutate}}, \code{\link{select}},
\code{\link{slice}}, \code{\link{summarise}}
}