as.target {rsubgroup} | R Documentation |
Constructs a target variable, i.e., an object suitable to be passed to DiscoverSubgroups or CreateSDTask.
as.target(attribute, value=NULL)
attribute |
The attribute of the target variable. |
value |
For binary targets, the respective attribute value; the value is NULL for numeric targets. |
# creating a target variable # binary: as.target("class", "true") #numeric: as.target("numeric_class")