describe_cat | R Documentation |
Describe categorical variables by N, number of unique values, and mode. Note that in case of multiple modes, the first mode by order of values is chosen.
describe_cat(data, ...)
data |
a tibble or a tdcmm model |
... |
Variables to describe (column names). Leave empty to describe all categorical variables in data. |
If no variables are specified, all categorical (character or factor) variables are described.
N: number of valid cases (i.e., all but missing)
Missing: number of NA cases
Unique: number of unique categories in a given variable, without Missing
Mode: mode average (if multiple modes exist, first mode by order of values is returned)
Mode_N: number of cases reflecting the Mode
a tdcmm model
Other descriptives:
describe()
,
tab_percentiles()
WoJ %>% describe_cat(reach, employment, temp_contract)
fbposts %>% describe_cat(type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.