farrange | R Documentation |
collapse
version of dplyr::arrange()
This is a fast and near-identical alternative to dplyr::arrange()
using the collapse
package.
desc()
is like dplyr::desc()
but works faster when
called directly on vectors.
farrange(data, ..., .by = NULL, .by_group = FALSE, .cols = NULL)
data |
A data frame. |
... |
Variables to arrange by. |
.by |
(Optional). A selection of columns to group by for this operation.
Columns are specified using |
.by_group |
If |
.cols |
(Optional) alternative to |
farrange()
is inspired by collapse::roworder()
but also supports
dplyr
style data-masking
which makes it a
closer replacement to dplyr::arrange()
.
You can use desc()
interchangeably with dplyr
and timeplyr
.
arrange(iris, desc(Species))
uses dplyr
's version.
farrange(iris, desc(Species))
uses timeplyr
's version.
farrange()
is faster when there are many groups or a large number of
rows.
A sorted data.frame
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.