ds_auto_freq_table: Multiple One & Two Way Tables

Description Usage Arguments Details Deprecated Functions See Also Examples

View source: R/ds-mult-table.R

Description

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.

Usage

1
2
3

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

Details

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.

Deprecated Functions

ds_oway_tables() and ds_tway_tables() have been deprecated. Instead use ds_auto_freq_table() and ds_auto_cross_table().

See Also

link{ds_freq_table} link{ds_cross_table}

Examples

1
2
3
4
5
6
7
# multiple one way tables
ds_auto_freq_table(mtcarz)
ds_auto_freq_table(mtcarz, cyl, gear)

# multiple two way tables
ds_auto_cross_table(mtcarz)
ds_auto_cross_table(mtcarz, cyl, gear, am)

descriptr documentation built on Dec. 15, 2020, 5:37 p.m.