Description Usage Arguments Value
This is not like findInterval
which places by order. Here order
is irrelevant.
1 | closest_index(vec, val)
|
vec |
vector of numeric values to search |
val |
the val to match into vec |
1-based index of the closest match in vec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.