View source: R/variable_summaries.R
percent | R Documentation |
This is just shorthand for taking 100*mean(x)
.
percent(x, na.rm = FALSE)
x |
numeric vector or logical vector for which the percent of 1's is
desired. |
na.rm |
logical; if |
summarize_variable(am ~ 1, data = mtcars, percent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.