ds_oway_tables creates multiple one way tables by creating
a frequency table for each categorical variable in a data frame.
ds_tway_tables creates multiple two way tables by creating a cross
table for each unique pair of categorical variables in a data frame.
Usage
ds_oway_tables(data)
ds_tway_tables(data)
Arguments
data
a data frame
Deprecated Functions
oway_tables() and tway_tables() have been deprecated. Instead
use ds_oway_tables() and ds_tway_tables().
Details
ds_oway_tables is a extension of the ds_freq_table
function. It creates a frequency table for each categorical variable in the
dataframe. ds_tway_tables 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.
# NOT RUN {mt <- mtcars
mt[, c(2, 8, 9)] <- lapply(mt[, c(2, 8, 9)], factor)
# multiple one way tablesds_oway_tables(mt)
# multiple two way tablesds_tway_tables(mt)
# }