DiscoverSubgroupsByTask {rsubgroup} | R Documentation |
Performs Subgroup Discovery for a given Task
Description
Performs subgroup discovery according to the given task.
Usage
DiscoverSubgroupsByTask(task, as.df=FALSE)
Arguments
task |
a subgroup discovery task constructed by CreateSDTask. |
as.df |
TRUE, if the result patterns should be returned
as a data.frame using |
See Also
DiscoverSubgroups
.
CreateSDTask
Examples
# creating a task
data(credit.data)
task <- CreateSDTask(
credit.data, as.target("class", "bad"), SDTaskConfig(
attributes=c("checking_status", "employment")))
taskNum <- CreateSDTask(
credit.data, as.target("credit_amount"), SDTaskConfig(
attributes=c("checking_status", "employment")))
# running the tasks
DiscoverSubgroupsByTask(task)
DiscoverSubgroupsByTask(taskNum)
[Package rsubgroup version 1.1 Index]