powered by
cat_desc_table computes absolute and relative frequencies for categorical data with a number of formatting options.
cat_desc_table
cat_desc_table( data, desc_vars, round_desc = 2, singleline = FALSE, spacer = " ", indentor = "" )
A tibble with variable names and descriptive statistics.
name of data set (tibble/data.frame) to analyze.
vector of column names for dependent variables.
number of significant digits for rounding of descriptive stats.
Put all group levels in a single line?
Text element to indent levels and fill empty cells, defaults to " ".
Optional text to indent factor levels
cat_desc_table( data = mtcars, desc_vars = c("gear", "cyl", "carb")) cat_desc_table( data = mtcars, desc_vars = c("gear", "cyl", "carb"), singleline = TRUE)
Run the code above in your browser using DataLab