freq_tab: Generate a tidy n-way frequency table

Description Usage Arguments Details Value Author(s) Examples

Description

Generate a tidy n-way frequency table

Usage

1

Arguments

df

tibble or data frame (implicit within pipline)

...

grouping, as with group_by()

Details

Tidyverse, pipeline, and dplyr-friendly frequency tables

Value

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.

Author(s)

Kieran Healy

Examples

1
mtcars %>% freq_tab(vs, gear, carb)

socviz documentation built on July 1, 2020, 7:04 p.m.