dplyr::count()
+ dplyr::arrange()
count_arrange.Rd
Shorthand for {dplyr}
functions called consecutively.
count_arrange(data, ..., sort = FALSE, .by_group = FALSE)
data | A |
---|---|
... | Additional arguments passed to internal |
sort | if |
.by_group | If |
A tibble.
Note that arranging is performed on the column used to compute
the value for dplyr::count()
, which is different than simply
calling dplyr::count(x, ..., sort = TRUE)
(which sorts by the output column n
).
For this reason, no sort
option is provided (to prevent the user from
mistakenly using this function in such a manner).
{tidyverse}
The logic for handling ...
is borrowed from a reivew of the internals for
tidyr::unite()
and tidyr::gather()
.
Other dplyr-combos: arrange_distinctly
,
pull_distinctly