proc_freq | R Documentation |
This function computes a one or two way contingency table and creates a flextable from the result.
The function is largely inspired by "PROC FREQ" from "SAS" and was written with the intent to make it as compact as possible.
proc_freq(
x,
row = character(),
col = character(),
include.row_percent = TRUE,
include.column_percent = TRUE,
include.table_percent = TRUE,
include.table_count = TRUE,
weight = character(),
...
)
x |
a |
row |
|
col |
|
include.row_percent |
|
include.column_percent |
|
include.table_percent |
|
include.table_count |
|
weight |
|
... |
unused arguments |
proc_freq(mtcars, "vs", "gear")
proc_freq(mtcars, "gear", "vs", weight = "wt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.