frequency table as flextable
This function compute a two way contingency table and make a flextable with the result.
proc_freq( x, row, col, main = "", include.row_percent = TRUE, include.column_percent = TRUE, include.table_percent = TRUE, include.column_total = TRUE, include.row_total = TRUE, include.header_row = TRUE, weight = NULL )
x |
|
row |
|
col |
|
main |
|
include.row_percent |
|
include.column_percent |
|
include.table_percent |
|
include.column_total |
|
include.row_total |
|
include.header_row |
|
weight |
|
Titouan Robert
proc_freq(mtcars, "vs", "gear") proc_freq(mtcars, "gear", "vs") proc_freq(mtcars, "gear", "vs", weight = "wt") proc_freq(mtcars, "gear", "vs", "My title")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.