Learn R Programming

broom (version 0.3.4)

tidy.ftable: tidy an ftable object

Description

An ftable contains a "flat" contingency table. This melts it into a data.frame with one column for each variable, then a Freq column. It directly uses the stats:::as.data.frame.ftable function

Usage

## S3 method for class 'ftable':
tidy(x, ...)

Arguments

x
An object of class "ftable"
...
Extra arguments (not used)

See Also

ftable

Examples

Run this code
tidy(ftable(Titanic, row.vars = 1:3))

Run the code above in your browser using DataLab