getLeafs: Get a list of all leafs in a tree

View source: R/getLeafs.R

getLeafsR 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 semtree object

data

A data.frame

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.


semtree documentation built on May 29, 2024, 4:05 a.m.