cat_desc_table | R Documentation |
cat_desc_table
computes absolute and relative frequencies for
categorical data with a number of formatting options.
cat_desc_table(
data,
desc_vars,
round_desc = 2,
singleline = FALSE,
spacer = " ",
indentor = ""
)
data |
name of data set (tibble/data.frame) to analyze. |
desc_vars |
vector of column names for dependent variables. |
round_desc |
number of significant digits for rounding of descriptive stats. |
singleline |
Put all group levels in a single line? |
spacer |
Text element to indent levels and fill empty cells, defaults to " ". |
indentor |
Optional text to indent factor levels |
A tibble with variable names and descriptive statistics.
cat_desc_table(
data = mtcars, desc_vars = c("gear", "cyl", "carb"))
cat_desc_table(
data = mtcars, desc_vars = c("gear", "cyl", "carb"), singleline = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.