Description Usage Arguments Value Warning Examples
This function returns descriptives for categorical variables (reports total counts (n) and percentage of total)
1 |
df |
a |
... |
names of categorical variables to report the descriptives by group |
Returns a data frame
with total counts by group and percentage of total by group
If columns with non-continuous values (numeric or integer) exist in df
, an error
is thrown and returns potential columns that you will have to remove
for the function to work.
1 2 3 | iris %>%
mutate(Bin = sample(x = 1:3,size = 150,replace = TRUE)) %>%
count_cat_df(Species, Bin)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.