Description Usage Arguments Value Examples
Generates a frequency table with the percentage of each group.
1 | freq_table_with_percent(df, cat_variable)
|
df |
A data frame. |
cat_variable |
The quoted column name that contains the categorical variable. |
A table in which the rownames are the groups of the categorical variable. The first column if the count of the respective group and the second column is the percentage of the the group.
1 | freq_table_with_percent(df=data,cat_variable="eye_color")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.