Description Usage Arguments Value
Calculates the frequency of discrete values in a vector and returns the counts as a tibble. The results can be sorted by value or by count.
1 2 3 4 5 6 7 |
values |
A vector of values from which frequencies will be calculated. |
name |
The column name to use for the values column in the results as a string. By default, the variable name of the input vector is used. |
by |
The column name by which to sort the results as a string. Must be one of either "count" or "value". The default is "count". |
order |
The order in which to sort the results as a string. Must be
one of either "asc" or "desc". The default depends on the value of the
|
na.rm |
A boolean indicating whether to exclude NAs from the results. The default is FALSE. |
A tibble showing the frequency of each value in the input vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.