find_index | R Documentation |
This function finds the closest index to a given value in a vector.
find_index(x, y)
x |
a vector |
y |
a value |
the index of the closest value in the vector
find_index(c(1, 2, 3, 4, 5), 3.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.