Description Usage Arguments See Also Examples
View source: R/getpredictorsfromtree.R
for each terminal node of the tree, give the elements of "predictors" who appear in the node definition
1 | getpredictorsfromtree(tree, predictors)
|
tree |
same format than output of partykit::ctree |
predictors |
list of variables |
daniRules
1 2 | tree<-partykit::ctree(Petal.Width~.,iris)
getpredictorsfromtree(tree,names(iris))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.