powered by
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
Freq
stats:::as.data.frame.ftable
# S3 method for ftable tidy(x, ...)
An object of class "ftable"
Extra arguments (not used)
ftable
# NOT RUN { tidy(ftable(Titanic, row.vars = 1:3)) # }
Run the code above in your browser using DataLab