Description Usage Arguments Value Examples
View source: R/binning_search.R
This function determines which bin each element of belongs to based on the lower bound and upper bound of each bin. The range of the ith bin is (start[i],end[i]].
Of limited interest to most users; function binning_search() would typically be called by some other functions.
1 |
v |
A vector of numbers. |
start |
lower bound of each bin |
end |
upper bound of each bin |
A vector with length length(v), giving which bin each element of v belongs to.
1 | binning_search(1:10,c(0,5),c(5,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.