Calculate the depth from leaf to root per tree.
Source:R/terminal_nodes.r
calculate_depth_per_tree.RdDepth of each terminal node of a single tree in a ranger model.
R/terminal_nodes.r
calculate_depth_per_tree.RdDepth of each terminal node of a single tree in a ranger model.