| track_outcomes | R Documentation |
Adds one or more outcome variables, counted within each current leaf (combination of all splits so far). Outcomes are stacked, not branched. Each outcome is treated as binary: counts how many individuals have value == 1 (or TRUE), plus the percentage within the leaf.
track_outcomes(sdf, vars, labels = NULL)
sdf |
A Spark DataFrame or local data frame. |
vars |
Character vector of outcome column names (binary 0/1 or logical). |
labels |
Optional named list (var -> label). |
sdf unchanged (for piping).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.