tidy.table {broom} | R Documentation |
A table, typically created by the table function, contains a
contingency table of frequencies across multiple vectors. This directly
calls the as.data.frame.table
method, which melts it into a
data frame with one column for each variable and a Freq
column.
## S3 method for class 'table' tidy(x, ...)
x |
An object of class "table" |
... |
Extra arguments (not used) |
tab <- with(airquality, table(cut(Temp, quantile(Temp)), Month)) tidy(tab)