View source: R/nice_frequencies.R
nice_frequencies | R Documentation |
Table with frequency statistics
nice_frequencies(
data,
grouping = NULL,
label = NULL,
label_grouping = NULL,
show_missing = TRUE,
show_percent = TRUE,
auto_labels = TRUE,
title = NULL,
footnote = NULL,
file = NULL,
...
)
data |
Vector. |
grouping |
A grouping variable as a vector. |
label |
Set label for the variable name. |
show_missing |
If TRUE, adds a row for the number of missing values. |
show_percent |
If TRUE, adds a column for percentages. |
auto_labels |
If TRUE, variable names are taken from a label attribute. |
title |
Table title. |
footnote |
Table footnote. |
file |
Filename. |
... |
Further arguments passed to |
An html table with frequencies
nice_frequencies(mtcars[[11]])
nice_frequencies(
mtcars$cyl, mtcars$am,
label = "Cylinders",
label_grouping = "Automatic"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.