joinClassLevels: Join some class existing levels to new, larger class levels...

View source: R/joinClassLevels.R

joinClassLevelsR Documentation

Join some class existing levels to new, larger class levels for classification problems.

Description

Join some class existing levels to new, larger class levels for classification problems.

Usage

joinClassLevels(task, new.levels)

Arguments

task

(Task)
The task.

new.levels

(list of character)
Element names specify the new class levels to create, while the corresponding element character vector specifies the existing class levels which will be joined to the new one.

Value

Task.

Examples

joinClassLevels(iris.task, new.levels = list(foo = c("setosa", "virginica")))

berndbischl/mlr documentation built on Aug. 15, 2024, 4:20 p.m.