calc_count_all: Calculate All Frequency & Percentage Counts

Description Usage Arguments Examples

View source: R/calc_count.R

Description

Calculate frequency and percentage caounts for all categorical variables.

Usage

1
calc_count_all(df, col = n, show_percent = TRUE, max_categories = 5)

Arguments

df

A tibble.

col

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

show_percent

Round and format percentages with %.

max_categories

A numeric scalar. Treat numeric variable as categorical for max_categories.

Examples

1
mtcars %>% get_counts_all(max_categories = 3)

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