powered by
Generate a tidy n-way frequency table
freq_tab(df, ...)
tibble or data frame (implicit within pipline)
grouping, as with group_by()
A tibble with the grouping variables, the N (`n`) per group, and the proportion (`prop`) of each group, calculated with respect to the outermost grouping variable.
Tidyverse, pipeline, and dplyr-friendly frequency tables
# NOT RUN { mtcars %>% freq_tab(vs, gear, carb) # }
Run the code above in your browser using DataLab