View source: R/fct_label_counts.R
fct_label_counts | R Documentation |
Recode a factor level to include sample size
fct_label_counts(f)
f |
A factor variable |
A factor variable with the counts included in the levels
f <- fct_label_counts(iris$Species)
levels(f)
# "setosa (n=50)" "versicolor (n=50)" "virginica (n=50)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.