View source: R/count.R
Count entries in a factor
fct_count(f, sort = FALSE)
A factor (or character vector).
If TRUE, sort the result so that the most common values
float to the top.
A tibble with columns f and n.
f <- factor(sample(letters)[rpois(1000, 10)])
fct_count(f, sort = TRUE)
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.