disstree.get.rules | R Documentation |
Tree classification rules.
disstree.get.rules(tree, collapse="; ")
tree |
A tree ( |
collapse |
Character string. Separator between categories in class of categorical values. |
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
.
Character vector with the rules as R commands and an attribute covariates
providing the names of the variables involved in the rules.
Gilbert Ritschard)
disstree
, disstreeleaf
, disstree.assign
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.