View source: R/tidyverse_extensions.R
percent | R Documentation |
Return the percentage each value or combination of values appear in a tibble or dataframe
percent(data, ..., .keep_n = FALSE)
data |
a tibble or dataframe |
... |
parameters to pass to |
.keep_n |
logical; keep or remove the |
# return a tibble of the percentage of gear type in the `mtcars` dataset
percent(mtcars, gear)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.