broom (version 0.4.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 ftable
tidy(x, ...)

Arguments

x

An object of class "ftable"

...

Extra arguments (not used)

See Also

ftable

Examples

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

# }

Run the code above in your browser using DataCamp Workspace