id_root: id_root

Description Usage Arguments Value Examples

View source: R/rfinference.R

Description

finding the "parents"; recovering the sequence of node ids from the given leaf id. using prevCond function recursively, we can find the family ancestry

Usage

1
id_root(tree, id)

Arguments

tree

a single tree object obtained from using "randomForest" and "getTree"

id

index of the tree

Value

a vector containing the entire "ancestry"

Examples

1
# id_root(tree, id)

ydhwang/rfinference documentation built on May 2, 2020, 4:48 p.m.