Description Usage Arguments Examples
View source: R/count_percentage.R
This function allows you to count the observations per group and compute the associated percentage.
1 | count_percentage(df, col_name, digits = 1)
|
df |
A data frame with the observations |
col_name |
The name of the column containing the observations |
digits |
The number of decimals needed for the percentage |
1 | count_percentage(iris, Species)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.