lookForVarsAbsentInForest: Look for Variable ID's that didn't occur in the Forest.

Description Usage Arguments Value

View source: R/tree_traversal_util.R

Description

Find any remaining vars, if missing. Vars can be absent in the forest, if they were never used to split. This function does some bookkeeping, to find elements in the count vector that should be 0. If there weren't enough vars observed, their indeces must be either at the end of vars_used, or the beginning.

Usage

1
lookForVarsAbsentInForest(counts, vars_used, num_ind_vars, forest)

Arguments

counts

A vector of split counts in the forest. This may need to be updated with 0's for variables that didn't occur in the forest.

vars_used

The current list of varID's that have been found in the forest.

num_ind_vars

The number of independent vars. Counts must have this many elements.

forest

Pass this to access the 'status.varID' if necessary.

Value

updated counts vector.


climbeR documentation built on May 2, 2019, 3:37 p.m.