THIS IS A COPY FROM MLR3PIPELINES!
new_target = NULL,
new_type = NULL,
drop_original_target = TRUE,
drop_levels = FALSE,
Task to be converted.
New target to be set, must be a column in the
NULL, no new target is set, and task is converted as-is.
The new task type. Must be in
NULL (default), a new task with the same task_type is created.
TRUE (default), the original target is dropped. Otherwise it is
added as a feature.
TRUE, unused levels of the new target variable are dropped.
Further arguments passed to the constructor of the task.
The task's target is replaced by a different column from the data.
#FIXME: This needs detailed tests and should be moved to mlr3.