Description Usage Arguments Examples
View source: R/random_rotation.R
Recursively compute tree height from the randomForest R package tree representation
1 | tree_height(mytree, r = 1, d = 1)
|
mytree |
tree representation from randomForest output rf$forest$treemap |
r |
internal recursion parameter (not used in user call) |
d |
internal recursion parameter (not used in user call), represents depth |
1 2 | rf <- randomForest(Species ~ ., iris)
tree_height(rf$forest$treemap[,,1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.