flextable (version 0.5.5)

proc_freq: frequency table as flextable

Description

This function compute a two way contingency table and make a flextable with the result.

Usage

proc_freq(x, row, col, main = "")

Arguments

x

data.frame object

row

characer column names for row

col

characer column names for column

main

characer title

Examples

Run this code
# NOT RUN {
proc_freq(mtcars, "vs", "gear")
proc_freq(mtcars, "gear", "vs")
proc_freq(mtcars, "gear", "vs", "My title")
# }

Run the code above in your browser using DataLab