subsetTask {mlr} | R Documentation |
Subset data in task.
Description
See title.
Usage
subsetTask(task, subset = NULL, features)
Arguments
task |
(Task) |
subset |
(integer | logical | |
features |
(character | integer | logical) |
Value
(Task). Task with subsetted data.
See Also
Other task:
getTaskClassLevels()
,
getTaskCosts()
,
getTaskData()
,
getTaskDesc()
,
getTaskFeatureNames()
,
getTaskFormula()
,
getTaskId()
,
getTaskNFeats()
,
getTaskSize()
,
getTaskTargetNames()
,
getTaskTargets()
,
getTaskType()
Examples
task = makeClassifTask(data = iris, target = "Species")
subsetTask(task, subset = 1:100)