as.target {rsubgroup} | R Documentation |
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
Examples
# creating a target variable
# binary:
as.target("class", "true")
#numeric:
as.target("numeric_class")
[Package rsubgroup version 1.1 Index]