Applies a function to the GRM models in specified nodes of a tree. This is an internal helper function and not meant to be called directly.
apply_to_models(object, node = NULL, FUN = NULL, drop = FALSE, ...)List of results (or single result if drop=TRUE and length(node)=1).
A grmtree object.
Vector of node IDs (default: all nodes).
Function to apply to each model.
Logical indicating whether to drop list structure if length 1.
Additional arguments passed to FUN.