Calculates frequency statistics of data

stats_frequency(data, ..., .select_function = is.factor)

Arguments

data

A data frame to process.

...

Grouping variables to be applied before calculation.

.select_function

Function used to select data columns for which the stats will be calculated. Default value is is.factor.

Value

Data frame containing stats.

Examples

library(ggplot2)
data("diamonds")
ds_stats <- stats_frequency(diamonds)
ds_stats <- stats_frequency(diamonds, color)