bin_index_finder_nest: Find bin index from R-tree structure

Description Usage Arguments Value Examples

Description

Use R-tree structure using from make_bin_list() function to find bin index for new observation

Usage

1
bin_index_finder_nest(x, bin_def, strict = TRUE)

Arguments

x

vector of input values for each of the binned dimensions

bin_def

Iterative quantile binning definition list

strict

TRUE/FALSE: If TRUE Observations must fall within existing bins to be assigned; if FALSE the outer bins in each dimension are unbounded to allow outlying values to be assigned.

Value

bin index for new observation

Examples

1
2
3
iq_def <- iterative_quant_bin(data=iris, bin_cols=c("Sepal.Length","Sepal.Width","Petal.Width"),
                               nbins=c(3,2,2), output="both")
bin_index_finder_nest(x=c(6,3,1.5),bin_def=iq_def$bin_def, strict=TRUE)

kmaurer/binsemble documentation built on May 7, 2019, 9:50 p.m.