cond_root: cond_root

Description Usage Arguments Value Examples

View source: R/rfinference.R

Description

finding the "parents" using this function recursively, we can find the family ancestry.

Usage

1
cond_root(tree, id)

Arguments

tree

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

id

index of the tree

Value

a statement defining the leaf (associated with "id"), by collecting the entire "ancestry"

Examples

1
# cond_root(tree, id)

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