Tree classification rules.
disstree.get.rules(tree, collapse="; ")Character vector with the rules as R commands and an attribute covariates providing the names of the variables involved in the rules.
A tree (disstree or DissTreeNode object).
Character string. Separator between categories in class of categorical values.
Gilbert Ritschard)
disstree.get.rules extracts the classification rules defined by a tree grown from a dissimilarity matrix and returns them as a vector of character strings. The rules are expressed as R commands and the i-th rule, for example, can be applied using eval(parse(text=rule[i])). Rules are built through a call to disstreeleaf.
disstree and examples therein, disstreeleaf, disstree.assign