calc_count: Get frequency and percentage counts for categorical variables

Description Usage Arguments Examples

View source: R/calc_count.R

Description

Calculate counts & percentages for selection of categorical variables

Usage

1
calc_count(df, ..., col = n, show_percent = TRUE)

Arguments

df

A tibble.

col

A fixed value that is quoted, representing number of cases.

show_percent

Round and format percentages with %.

Examples

1
2
mtcars %>% calc_count(cyl)
mtcars %>% calc_count(cyl, am)

PsychlytxTD/fht documentation built on July 4, 2020, 5:42 p.m.