Description Usage Arguments Value Examples
Use R-tree structure using from make_bin_list() function to find bin index for new observation
1 | bin_index_finder_nest(x, bin_def, strict = TRUE)
|
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. |
bin index for new observation
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.