calc_multi_col_freqs: Calculate frequencies for multiple columns

Description Usage Arguments Value

View source: R/calc_multi_col_freqs.R

Description

Calculates frequencies for multiple dataframe columns and returns them in a single data frame which can be used with the plot_stacked or plot_likert functions

Usage

1
calc_multi_col_freqs(cols, factor_levels, calc_props = FALSE)

Arguments

cols

the selected columns (data.frame)

factor_levels

a list of factor levels for the cell values of all columns

calc_props

whether or not to calculate proportions (logical, FALSE by default)

Value

frequencies data frame with the frequencies of response options by column


best-practice-and-impact/CARS2 documentation built on Dec. 19, 2021, 8:47 a.m.