View source: R/ds-mult-table.R
ds_auto_freq_table | R Documentation |
ds_auto_freq_table
creates multiple one way tables by creating
a frequency table for each categorical variable in a data frame.
ds_auto_cross_table
creates multiple two way tables by creating a cross
table for each unique pair of categorical variables in a data frame.
ds_auto_freq_table(data, ...)
ds_auto_cross_table(data, ...)
data |
A |
... |
Column(s) in |
ds_auto_freq_table
is a extension of the ds_freq_table
function. It creates a frequency table for each categorical variable in the
dataframe. ds_auto_cross_table
is a extension of the ds_cross_table
function. It creates a two way table for each unique pair of categorical
variables in the dataframe.
ds_oway_tables()
and ds_tway_tables()
have been deprecated.
Instead use ds_auto_freq_table()
and ds_auto_cross_table()
.
link{ds_freq_table}
link{ds_cross_table}
# frequency table for all columns
ds_auto_freq_table(mtcarz)
# frequency table for multiple columns
ds_auto_freq_table(mtcarz, cyl, gear)
# cross table for all columns
ds_auto_cross_table(mtcarz)
# cross table for multiple columns
ds_auto_cross_table(mtcarz, cyl, gear, am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.