Learn R Programming

rsubgroup (version 0.6)

CreateSDTask: Creates a Subgroup Discovery Task

Description

Performs subgroup discovery according to the given task.

Usage

CreateSDTask(source, target, config=new("SDTaskConfig"))

Arguments

source

a data.frame or the a character string giving the filename of an ARFF file to use.

target

the target variable (constructed by as.target) to consider for subgroup discovery.

config

an instance of SDTaskConfig providing various parameters for subgroup discovery.

See Also

DiscoverSubgroups. DiscoverSubgroupsByTask SDTaskConfig

Examples

Run this code
# NOT RUN {
# creating a task
data(credit.data)

# task with binary target
task <- CreateSDTask(credit.data, as.target("class", "good"))

# task with numeric target
taskNum <- CreateSDTask(credit.data, as.target("credit_amount"))
# }

Run the code above in your browser using DataLab