Learn R Programming

mlr (version 2.19.0)

summarizeLevels: Summarizes factors of a data.frame by tabling them.

Description

Characters and logicals will be treated as factors.

Usage

summarizeLevels(obj, cols = NULL)

Value

(list). Named list of tables.

Arguments

obj

(data.frame | Task)
Input data.

cols

(character)
Restrict result to columns in cols. Default is all factor, character and logical columns of obj.

See Also

Other eda_and_preprocess: capLargeValues(), createDummyFeatures(), dropFeatures(), mergeSmallFactorLevels(), normalizeFeatures(), removeConstantFeatures(), summarizeColumns()

Examples

Run this code
summarizeLevels(iris)

Run the code above in your browser using DataLab