getAncestryNode <- function (indNode = integer(), tree = matrix()) {
ancestryVector <- numeric()
while (indNode != 1) {
indNode <- getParentNode(indNode, tree)
ancestryVector <- c(ancestryVector, indNode)
}
tree[ancestryVector, "split var"]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.