Learn R Programming

rsubgroup (version 0.6)

as.target: Constructs a target variable (for subgroup discovery)

Description

Constructs a target variable, i.e., an object suitable to be passed to DiscoverSubgroups or CreateSDTask.

Usage

as.target(attribute, value=NULL)

Arguments

attribute

The attribute of the target variable.

value

For binary targets, the respective attribute value; the value is NULL for numeric targets.

See Also

DiscoverSubgroups.

Examples

Run this code
# NOT RUN {
# creating a target variable
# binary:
as.target("class", "true")

#numeric:
as.target("numeric_class")
# }

Run the code above in your browser using DataLab