describe_cat: Describe categorical variable
Description
Describe categorical variable
Usage
describe_cat(data, var, n, max_cat = 10, out = "text", margin = 0)
Value
Description as text or list
Arguments
- data
A dataset
- var
Variable or variable name
- n
Weights variable for count-data
- max_cat
Maximum number of categories displayed
- out
Output format ("text"|"list"|"tibble"|"df")
- margin
Left margin for text output (number of spaces)