Learn R Programming

lares (version 5.1.0)

list_cats: List categorical values for data.frame

Description

Make a list with all categorical values and

Usage

list_cats(df, ..., abc = TRUE)

Arguments

df

data.frame

...

Variables to segment counters

abc

Boolean. Sort alphabetically?

Value

List. Length same as number of categorical columns, each with a frequency data.frame using freqs().

Examples

Run this code
# NOT RUN {
data(dft) # Titanic dataset
df <- dft[, 1:5]
head(df)
list_cats(df)
# }

Run the code above in your browser using DataLab