getLeafs {semtree} | R Documentation |
Get a list of all leafs in a tree
Description
Get a list of all leafs in a tree by recursively searching the tree starting
at the given node (if not data
object is given. If data
is
given, the function returns the leafs that are predicted for each row of the
given data.
Usage
getLeafs(tree, data = NULL)
Arguments
tree |
A |
data |
A |
Author(s)
Andreas M. Brandmaier
References
Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.
[Package semtree version 0.9.20 Index]