Given a result from the Ranger package (write.forest must be set to TRUE), this function will traverse the trees and calculate the first and second order average minimal depth of a maximal subtree.
A ranger object from the ranger package, which was created with param write.forest set to TRUE. In other words, it must have a 'forest' property.
A data.frame with two columns: averaged first and second order minimal depth of a maximal subtree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.