fct_count | R Documentation |
Count entries in a factor
fct_count(f, sort = FALSE, prop = FALSE)
f |
A factor (or character vector). |
sort |
If |
prop |
If |
A tibble with columns f
, n
and p
, if prop is TRUE
.
f <- factor(sample(letters)[rpois(1000, 10)]) table(f) fct_count(f) fct_count(f, sort = TRUE) fct_count(f, sort = TRUE, prop = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.