proc_freq {flextable} | R Documentation |
Frequency table
Description
This function compute a one or two way contingency table and create 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.
Usage
proc_freq(
x,
row = character(),
col = character(),
include.row_percent = TRUE,
include.column_percent = TRUE,
include.table_percent = TRUE,
weight = character(),
...
)
Arguments
x |
a |
row |
|
col |
|
include.row_percent |
|
include.column_percent |
|
include.table_percent |
|
weight |
|
... |
unused arguments |
Examples
proc_freq(mtcars, "vs", "gear")
proc_freq(mtcars, "gear", "vs", weight = "wt")
[Package flextable version 0.9.6 Index]