fcount | R Documentation |
Generate counts on data
fcount( df, ..., sort = TRUE, pct = TRUE, round = FALSE, denom = "sum", pct_formatting = FALSE, cum_sum = FALSE, cum_prop = FALSE, head = NULL )
df |
a tibble to count |
... |
variables to group by |
sort |
if TRUE will sort output in descending order of n |
pct |
if TRUE will add percent column |
round |
if TRUE will round to nearest percent |
denom |
denominator for calculating percent. If sum then will use sum of n otherwise will use value entered |
pct_formatting |
should percent formatting be applied |
cum_sum |
if TRUE will add column for cumulative sum |
cum_prop |
if TRUE will add column for cumulative percent |
head |
returns all values by default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.