This performs the equivalent of:
count(x, col) %>% mutate(pct=n/100, percent=scales::percent(pct))
1 |
x |
a |
... |
variables to group by |
wt |
(Optional) If omitted, will count the number of rows. If specified, will perform a "weighted" tally by summing the (non-missing) values of variable wt. |
sort |
unlike |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.