Last data update: 2014.03.03
|
R: Constructs a target variable (for subgroup discovery)
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
# creating a target variable
# binary:
as.target("class", "true")
#numeric:
as.target("numeric_class")
Results
|