Revision 272ac623c984dbf5defce76b6495c05accafe79f authored by Patrick Schratz on 17 December 2019, 04:08:28 UTC, committed by Patrick Schratz on 17 December 2019, 04:08:28 UTC
Build URL: https://circleci.com/gh/mlr-org/mlr/1264
Commit:
1 parent 9de9c6e
Raw File
joinClassLevels.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/joinClassLevels.R
\name{joinClassLevels}
\alias{joinClassLevels}
\title{Join some class existing levels to new, larger class levels for classification problems.}
\usage{
joinClassLevels(task, new.levels)
}
\arguments{
\item{task}{(\link{Task})\cr
The task.}

\item{new.levels}{(\code{list} of \code{character})\cr
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{
\link{Task}.
}
\description{
Join some class existing levels to new, larger class levels for classification problems.
}
\examples{
joinClassLevels(iris.task, new.levels = list(foo = c("setosa", "virginica")))
}
back to top