Description Usage Arguments Value Author(s) Examples
Get the position of x in vector y
1 | binary_search_r(x, y, tol = sqrt(.Machine$double.eps))
|
x |
A numeric value |
y |
A numeric vector |
tol |
double equal tolerance |
A integer of the x
position in y
.
1 2 3 4 5 | binary_search_r(2.5, 1:10)
binary_search_r(1.2, 1:10)
binary_search_r(0.5, 1:10)
binary_search_r(9.5, 1:10)
binary_search_r(11, 1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.