Description Usage Arguments Value Examples
Show frequencies of categories in a data.table.
1 2 | freq_table(.x, .lump = TRUE, .cum = FALSE, .decreasing = TRUE,
.digits = 3, ...)
|
.x |
A vector of values, typical factor/character. |
.lump |
Lump together small categories to "Other"? |
.cum |
Logical value. Show cumulative sums? |
.decreasing |
Logical value. Sort descending? |
.digits |
Integer value. Number of digits to round proportions to. |
... |
Arguments passed on to |
A data.table containing absolute and relative frequencies.
1 2 3 4 5 | iris$Species %>% freq_table()
if (require(nycflights13)) {
nycflights13::flights$carrier %>% freq_table()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.