count_count | R Documentation |
Wrapper function to dplyr::count()
and dplyr::add_count()
count_count(data, ..., sort = FALSE, .drop = FALSE)
data |
A tibble or data frame. |
... |
data-masking Variables to group by. |
sort |
If TRUE, will show the largest groups at the top. |
.drop |
For count(): if FALSE will include counts for empty groups (i.e. for levels of factors that don't exist in the data). Deprecated in add_count() since it didn't actually affect the output. |
An object of the same type as .data. count() and add_count() group transiently, so the output has the same groups as the input.
library(palmerpenguins)
count_count(data = penguins,
species)
count_count(data = penguins,
species,
sex)
count_count(data = penguins,
species,
sex,
sort = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.